結果

問題 No.2112 All 2x2 are Equal
ユーザー 👑 KazunKazun
提出日時 2022-10-28 22:08:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 1,228 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 96,488 KB
最終ジャッジ日時 2023-09-20 05:07:35
合計ジャッジ時間 9,710 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,364 KB
testcase_01 AC 75 ms
71,320 KB
testcase_02 AC 89 ms
76,736 KB
testcase_03 AC 86 ms
76,680 KB
testcase_04 WA -
testcase_05 AC 152 ms
87,312 KB
testcase_06 WA -
testcase_07 AC 122 ms
82,668 KB
testcase_08 AC 175 ms
91,728 KB
testcase_09 WA -
testcase_10 AC 131 ms
83,576 KB
testcase_11 AC 116 ms
81,340 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 84 ms
76,492 KB
testcase_17 AC 171 ms
91,316 KB
testcase_18 WA -
testcase_19 AC 97 ms
78,284 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 98 ms
78,988 KB
testcase_25 AC 102 ms
79,472 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 102 ms
78,316 KB
testcase_30 AC 125 ms
82,500 KB
testcase_31 AC 156 ms
87,840 KB
testcase_32 WA -
testcase_33 AC 202 ms
96,488 KB
testcase_34 WA -
testcase_35 AC 197 ms
96,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    H,W=map(int,input().split())

    print("Yes")

    Odd =list(range(1,H*W+1,2))
    Even=list(range(2,H*W+1,2))[::-1]

    X=[Odd[i//2] if i%2==0 else Even[i//2] for i in range(H*W)]
    for i in range(H):
        print(*X[i*W:(i+1)*W])

#==================================================
solve()
0