結果

問題 No.1974 2x2 Flipper
ユーザー hir355hir355
提出日時 2022-06-10 22:24:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 81,680 KB
実行使用メモリ 85,628 KB
最終ジャッジ日時 2023-10-21 05:24:13
合計ジャッジ時間 5,685 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,460 KB
testcase_01 AC 73 ms
76,584 KB
testcase_02 AC 53 ms
64,388 KB
testcase_03 AC 122 ms
82,012 KB
testcase_04 AC 86 ms
78,408 KB
testcase_05 WA -
testcase_06 AC 103 ms
80,000 KB
testcase_07 AC 89 ms
78,428 KB
testcase_08 AC 60 ms
74,200 KB
testcase_09 AC 108 ms
80,448 KB
testcase_10 WA -
testcase_11 AC 95 ms
79,080 KB
testcase_12 AC 124 ms
81,944 KB
testcase_13 AC 99 ms
79,444 KB
testcase_14 AC 82 ms
77,784 KB
testcase_15 AC 130 ms
83,060 KB
testcase_16 WA -
testcase_17 AC 113 ms
80,840 KB
testcase_18 AC 56 ms
73,196 KB
testcase_19 AC 67 ms
76,244 KB
testcase_20 AC 86 ms
78,412 KB
testcase_21 AC 156 ms
85,628 KB
testcase_22 AC 154 ms
85,624 KB
testcase_23 AC 157 ms
85,512 KB
testcase_24 WA -
testcase_25 AC 39 ms
53,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
if n == 1 or m == 1:
    ans = [[0] * m for _ in range(n)]
    print(0)
    for row in ans:
        print(*row)
    exit(0)
x = n // 2 * 2
y = m // 2 * 2
print(x * y)
ans = [[0] * m for _ in range(n)]
for i in range(x):
    for j in range(y):
        ans[i][j] = 1
for row in ans:
    print(*row)
0