結果
問題 | No.1974 2x2 Flipper |
ユーザー | ytft |
提出日時 | 2022-06-11 08:07:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 504 bytes |
コンパイル時間 | 417 ms |
コンパイル使用メモリ | 81,824 KB |
実行使用メモリ | 77,888 KB |
最終ジャッジ日時 | 2023-10-21 15:11:38 |
合計ジャッジ時間 | 7,141 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
53,572 KB |
testcase_01 | AC | 64 ms
75,620 KB |
testcase_02 | AC | 47 ms
64,344 KB |
testcase_03 | AC | 108 ms
76,724 KB |
testcase_04 | AC | 79 ms
76,132 KB |
testcase_05 | WA | - |
testcase_06 | AC | 94 ms
76,340 KB |
testcase_07 | AC | 82 ms
76,052 KB |
testcase_08 | AC | 57 ms
75,604 KB |
testcase_09 | AC | 95 ms
76,428 KB |
testcase_10 | WA | - |
testcase_11 | AC | 86 ms
76,464 KB |
testcase_12 | AC | 108 ms
77,124 KB |
testcase_13 | AC | 92 ms
76,276 KB |
testcase_14 | AC | 70 ms
75,868 KB |
testcase_15 | AC | 117 ms
77,036 KB |
testcase_16 | WA | - |
testcase_17 | AC | 107 ms
76,632 KB |
testcase_18 | AC | 57 ms
73,184 KB |
testcase_19 | AC | 64 ms
75,624 KB |
testcase_20 | AC | 81 ms
76,160 KB |
testcase_21 | AC | 136 ms
77,516 KB |
testcase_22 | AC | 138 ms
77,608 KB |
testcase_23 | AC | 142 ms
77,888 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
ソースコード
import sys def input():return sys.stdin.readline().strip() H,W=map(int,input().split()) if H%2: if W%2: print(H*W-max(H,W)) for i in range(H): print(*[int(j==i or i>=W and j==W-1 or i==H-1 and j>=H-1) for j in range(W)]) else: print(H*W-W) for i in range(H-1): print(*[1 for j in range(W)]) print(*[0 for j in range(W)]) else: if W%2: print(H*W-H) for i in range(H): print(*([1 for j in range(W-1)]+[0])) else: print(H*W) for i in range(H): print(*[1 for j in range(W)])