結果
問題 | No.2112 All 2x2 are Equal |
ユーザー |
![]() |
提出日時 | 2022-10-28 22:30:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 361 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 60,800 KB |
最終ジャッジ日時 | 2024-07-06 01:42:42 |
合計ジャッジ時間 | 3,143 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 WA * 33 |
ソースコード
H,W=map(int,input().split())if H==2 or W==2:print("Yes")if H==2:print(*range(1,W+1))print(*reversed(range(W+1,W*2+1)))else:ans=[list(range(1,H+1)),list(range(H+1,H*2+1))[::-1]]for a,b in zip(*ans):print(a,b)exit()if H==W==3:print("""Yes1 5 39 8 74 2 6""")exit()print("No")