結果

問題 No.246 質問と回答
ユーザー YOS G-specYOS G-spec
提出日時 2018-10-18 00:04:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 580 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 24,336 KB
平均クエリ数 30.90
最終ジャッジ日時 2023-09-23 20:29:55
合計ジャッジ時間 3,854 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
23,928 KB
testcase_01 AC 52 ms
24,216 KB
testcase_02 AC 52 ms
23,928 KB
testcase_03 AC 51 ms
23,928 KB
testcase_04 AC 50 ms
23,916 KB
testcase_05 AC 52 ms
23,380 KB
testcase_06 AC 53 ms
23,556 KB
testcase_07 AC 53 ms
24,336 KB
testcase_08 AC 53 ms
24,060 KB
testcase_09 AC 53 ms
23,352 KB
testcase_10 AC 52 ms
23,676 KB
testcase_11 AC 53 ms
23,452 KB
testcase_12 AC 53 ms
23,328 KB
testcase_13 AC 53 ms
23,548 KB
testcase_14 AC 53 ms
23,644 KB
testcase_15 AC 52 ms
23,688 KB
testcase_16 AC 51 ms
23,928 KB
testcase_17 AC 51 ms
23,560 KB
testcase_18 AC 52 ms
23,500 KB
testcase_19 AC 52 ms
23,952 KB
testcase_20 AC 51 ms
23,592 KB
testcase_21 AC 52 ms
23,916 KB
testcase_22 AC 52 ms
23,672 KB
testcase_23 AC 52 ms
24,168 KB
testcase_24 AC 53 ms
23,400 KB
testcase_25 AC 53 ms
23,448 KB
testcase_26 AC 53 ms
23,916 KB
testcase_27 AC 52 ms
24,048 KB
testcase_28 AC 51 ms
24,276 KB
testcase_29 AC 51 ms
23,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

numMin=1
numMax=1000000001
while True:
	chkNum=int((numMin+numMax)/2);
	print("? {0}".format(chkNum),flush=True)
	if input()=="1": numMin=chkNum
	else: numMax=chkNum
	if numMin==numMax-1:
		print("! {0}".format(numMin),flush=True)
		break
0