結果

問題 No.253 ロウソクの長さ
ユーザー YOS G-specYOS G-spec
提出日時 2018-10-18 23:10:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 457 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 24,324 KB
平均クエリ数 21.22
最終ジャッジ日時 2023-09-24 01:59:40
合計ジャッジ時間 3,749 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
23,732 KB
testcase_01 AC 32 ms
23,624 KB
testcase_02 AC 33 ms
23,392 KB
testcase_03 AC 34 ms
23,748 KB
testcase_04 AC 33 ms
23,616 KB
testcase_05 AC 34 ms
24,276 KB
testcase_06 AC 34 ms
23,816 KB
testcase_07 AC 33 ms
23,472 KB
testcase_08 AC 34 ms
23,752 KB
testcase_09 AC 34 ms
23,840 KB
testcase_10 AC 33 ms
24,264 KB
testcase_11 AC 34 ms
23,332 KB
testcase_12 AC 36 ms
24,000 KB
testcase_13 AC 37 ms
23,904 KB
testcase_14 AC 34 ms
23,364 KB
testcase_15 AC 35 ms
23,748 KB
testcase_16 AC 32 ms
23,520 KB
testcase_17 AC 34 ms
24,324 KB
testcase_18 AC 37 ms
23,604 KB
testcase_19 AC 36 ms
23,668 KB
testcase_20 AC 35 ms
23,460 KB
testcase_21 AC 32 ms
23,624 KB
testcase_22 AC 31 ms
23,560 KB
testcase_23 AC 33 ms
24,312 KB
testcase_24 AC 32 ms
24,120 KB
testcase_25 AC 35 ms
23,628 KB
testcase_26 AC 33 ms
24,000 KB
testcase_27 AC 36 ms
23,616 KB
testcase_28 AC 32 ms
23,324 KB
testcase_29 AC 37 ms
24,000 KB
testcase_30 AC 33 ms
23,616 KB
testcase_31 AC 34 ms
24,300 KB
testcase_32 AC 33 ms
24,120 KB
testcase_33 AC 35 ms
24,132 KB
testcase_34 AC 34 ms
24,300 KB
testcase_35 AC 34 ms
24,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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