結果

問題 No.3211 NAND Oracle
ユーザー 回転
提出日時 2025-07-25 22:29:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 82,900 KB
実行使用メモリ 81,824 KB
最終ジャッジ日時 2025-07-25 22:29:08
合計ジャッジ時間 5,199 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 17 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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,3), (1,3), (3,4), (4,5), (4,5)] + [(6,7)]*(2*10**5+5)
    for i in ans[:Q]:
        print(*i)
else:
    print("No")
0