結果

問題 No.3211 NAND Oracle
ユーザー 👑 p-adic
提出日時 2025-07-26 11:17:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 757 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2025-07-26 11:18:05
合計ジャッジ時間 8,030 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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<5:print("No")
else:
	print("Yes")
	for q in R(Q):
		if q<=1:print(1,2)
		elif q==2:print(3,4)
		elif 3<=q<=4:print(4,5)
		else:print(6,7)
#__0123456
#123456788
#001101100
#011101100
#101101100
#110011100
#122334555
0