結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-07-26 11:30:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 513 bytes |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2025-07-26 11:31:06 |
| 合計ジャッジ時間 | 7,474 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 14 |
ソースコード
R=range
Q,K=map(int,input().split())
if 2<=Q<=3 and K<3:print("No")
elif Q==4 and K<4:print("No")
elif Q==5 and K<4:print("No")
else:
print("Yes")
if Q==5:
for q in R(1,Q+1):
if 1<=q<=2:print(1,2)
elif q==3:print(3,4)
elif 4<=q<=5:print(4,5)
else:print(6,7)
else:
for q in R(1,Q+1):
if 1<=q<=2:print(1,2)
elif 3<=q<=4:print(3,4)
else:print(5,6)
#__1234567
#123456789
#001101100
#011101100
#101101100
#110011100
#122334555
#__12345
#1234567
#0011001
#0111001
#1011001
#1100110
#1223344