Submission #1360827
Source Code Expand
import numpy as np H,W,h,w = map(int,input().split()) # H,W,h,w = (3,4,2,3) hrep = H//h +1 wrep = W//w +1 elem = np.ones((h,w),dtype=np.int) elem[-1,-1] = -h*w mat = np.tile(elem, (hrep,wrep)) mat = mat[:H,:W] if mat.sum() > 0: print("Yes") for i in mat: print(" ".join(map(str,i))) else: print("No")
Submission Info
Submission Time | |
---|---|
Task | B - Colorful Hats |
User | chahan69 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 329 Byte |
Status | RE |
Exec Time | 318 ms |
Memory | 21520 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 700 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 0_05.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 0_05.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt, 1_15.txt, 1_16.txt, 1_17.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | RE | 318 ms | 21520 KB |
0_01.txt | RE | 156 ms | 12376 KB |
0_02.txt | RE | 160 ms | 12376 KB |
0_03.txt | RE | 159 ms | 12376 KB |
0_04.txt | RE | 158 ms | 12504 KB |
0_05.txt | RE | 157 ms | 12504 KB |
1_00.txt | RE | 185 ms | 12504 KB |
1_01.txt | RE | 164 ms | 12404 KB |
1_02.txt | RE | 159 ms | 12404 KB |
1_03.txt | RE | 159 ms | 12404 KB |
1_04.txt | RE | 158 ms | 12376 KB |
1_05.txt | RE | 158 ms | 12404 KB |
1_06.txt | RE | 166 ms | 12500 KB |
1_07.txt | RE | 159 ms | 12500 KB |
1_08.txt | RE | 162 ms | 12504 KB |
1_09.txt | RE | 174 ms | 12500 KB |
1_10.txt | RE | 165 ms | 12376 KB |
1_11.txt | RE | 164 ms | 12504 KB |
1_12.txt | RE | 160 ms | 12500 KB |
1_13.txt | RE | 174 ms | 12404 KB |
1_14.txt | RE | 159 ms | 12404 KB |
1_15.txt | RE | 159 ms | 12376 KB |
1_16.txt | RE | 159 ms | 12500 KB |
1_17.txt | RE | 174 ms | 12504 KB |