結果

問題 No.1974 2x2 Flipper
ユーザー hir355hir355
提出日時 2022-06-10 22:22:51
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 205 bytes
コンパイル時間 864 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 85,680 KB
最終ジャッジ日時 2023-10-21 05:23:47
合計ジャッジ時間 7,913 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,468 KB
testcase_01 RE -
testcase_02 WA -
testcase_03 RE -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 WA -
testcase_10 RE -
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 RE -
testcase_18 WA -
testcase_19 RE -
testcase_20 WA -
testcase_21 AC 155 ms
85,348 KB
testcase_22 WA -
testcase_23 RE -
testcase_24 WA -
testcase_25 AC 38 ms
53,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
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(x):
        ans[i][j] = 1
for row in ans:
    print(*row)
0