結果

問題 No.3211 NAND Oracle
ユーザー lif4635
提出日時 2025-05-29 21:26:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 853 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 77,708 KB
最終ジャッジ日時 2025-05-29 21:26:22
合計ジャッジ時間 6,204 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

q, k = map(int, input().split())
lim = [-1,2,3,3,4,5]
op = [(1,2), (1,2), (3,4), (4,5), (4,5)]

if lim[min(q, 5)] > k:
    print("No")
    exit()

print("Yes")
for i in range(min(q, 5)):
    print(*op[i])

for i in range(max(q - 5, 0)):
    print(6, 7)
0