結果
問題 |
No.3211 NAND Oracle
|
ユーザー |
![]() |
提出日時 | 2025-07-25 22:54:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 130 ms / 2,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 412 ms |
コンパイル使用メモリ | 82,716 KB |
実行使用メモリ | 81,812 KB |
最終ジャッジ日時 | 2025-07-25 22:54:13 |
合計ジャッジ時間 | 5,927 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
Q,K = list(map(int,input().split())) if(K >= 5 or (K == 4 and Q <= 4) or (K == 3 and Q <= 3) or (K == 2 and Q == 1)): print("Yes") ans = [(1,2), (1,2), (3,4), (4,5), (4,5)] + [(6,7)]*(2*10**5+5) for i in ans[:Q]: print(*i) elif(K == 4 and Q == 5): print("Yes") ans = [(1,2), (1,2), (1,2), (3,4), (3,4)] for i in ans: print(*i) else: print("No")