結果

問題 No.3212 SUPER Guess the Number
ユーザー sasa8uyauya
提出日時 2025-07-25 22:27:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 71,356 KB
平均クエリ数 26.00
最終ジャッジ日時 2025-07-25 22:28:08
合計ジャッジ時間 3,110 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

l=1
r=10**6
print("?",l)
f=1
for _ in range(24):
	if f:
		print("?",r)
		g=int(input())
		if g:
			l=(l+r)//2
			f^=1
		else:
			r=(l+r)//2
	else:
		print("?",l)
		g=int(input())
		if g:
			r=(l+r)//2
			f^=1
		else:
			l=(l+r)//2
print("!",l)
0