結果

問題 No.246 質問と回答
コンテスト
ユーザー Konton7
提出日時 2019-05-22 01:06:40
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 347 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 456 ms
コンパイル使用メモリ 20,724 KB
実行使用メモリ 34,688 KB
平均クエリ数 99.00
最終ジャッジ日時 2026-03-31 06:55:16
合計ジャッジ時間 7,179 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

lt_list = []
gt_list = []

d = 5*(10**8)
d1 = 5*(10**8)

for i in range(99):
	ans = -1
	for i in lt_list:
		if i+1 in gt_list:
			ans = i
	
	if ans == -1:
		print("? "+str(d))
		res = int(input())
		d1 = max(d1//2 , 1)

		if res == 0:
			lt_list.append(d)
			d = d + d1
		else:
			gt_list.append(d)
			d = d - d1

	else:
		print("! "+str(ans))
		
0