結果

問題 No.246 質問と回答
ユーザー TawaraTawara
提出日時 2015-07-17 23:41:39
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 2,552 ms
コンパイル使用メモリ 77,392 KB
実行使用メモリ 92,592 KB
平均クエリ数 30.90
最終ジャッジ日時 2023-09-23 19:58:45
合計ジャッジ時間 5,925 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
92,204 KB
testcase_01 AC 115 ms
91,976 KB
testcase_02 AC 116 ms
91,732 KB
testcase_03 AC 116 ms
92,020 KB
testcase_04 AC 116 ms
91,808 KB
testcase_05 AC 116 ms
92,116 KB
testcase_06 AC 115 ms
92,288 KB
testcase_07 AC 118 ms
92,232 KB
testcase_08 AC 115 ms
92,592 KB
testcase_09 AC 113 ms
91,936 KB
testcase_10 AC 115 ms
92,496 KB
testcase_11 AC 113 ms
92,244 KB
testcase_12 AC 117 ms
91,832 KB
testcase_13 AC 115 ms
92,160 KB
testcase_14 AC 115 ms
92,056 KB
testcase_15 AC 116 ms
92,120 KB
testcase_16 AC 115 ms
92,056 KB
testcase_17 AC 117 ms
91,844 KB
testcase_18 AC 118 ms
91,680 KB
testcase_19 AC 116 ms
92,544 KB
testcase_20 AC 115 ms
92,060 KB
testcase_21 AC 116 ms
91,916 KB
testcase_22 AC 114 ms
92,216 KB
testcase_23 AC 114 ms
92,076 KB
testcase_24 AC 115 ms
92,252 KB
testcase_25 AC 115 ms
92,124 KB
testcase_26 AC 112 ms
91,828 KB
testcase_27 AC 114 ms
92,476 KB
testcase_28 AC 111 ms
92,512 KB
testcase_29 AC 112 ms
92,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
right = 10**9 + 1
left = 1
while right - left > 1:
	mid = (right + left) / 2
	print "? %d" % mid
	if int(raw_input()):
		left = mid
	else:
		right = mid
	sys.stdout.flush()
print "! %d" % left
0