結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-07-26 08:42:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 278 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2025-07-26 08:42:13 |
| 合計ジャッジ時間 | 7,615 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 17 WA * 11 |
ソースコード
R=range
Q,K=map(int,input().split())
if 1<Q<4 and K<3:exit(print("No"))
if Q>3 and K<4:exit(print("No"))
print("Yes")
if Q<4:
for i in R(Q):
if i<2:print(1,2)
else:print(3,4)
else:
for i in R(Q):
if i<1:print(1,2)
elif i<3:print(1,3)
else:print(4,5)