結果

問題 No.246 質問と回答
ユーザー n_knuun_knuu
提出日時 2015-07-25 11:56:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 24,228 KB
平均クエリ数 30.90
最終ジャッジ日時 2023-09-23 20:03:44
合計ジャッジ時間 3,588 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
24,000 KB
testcase_01 AC 58 ms
23,492 KB
testcase_02 AC 54 ms
23,628 KB
testcase_03 AC 55 ms
24,096 KB
testcase_04 AC 55 ms
24,060 KB
testcase_05 AC 54 ms
23,544 KB
testcase_06 AC 53 ms
23,820 KB
testcase_07 AC 52 ms
23,388 KB
testcase_08 AC 52 ms
23,628 KB
testcase_09 AC 52 ms
23,472 KB
testcase_10 AC 54 ms
23,356 KB
testcase_11 AC 52 ms
23,272 KB
testcase_12 AC 53 ms
23,248 KB
testcase_13 AC 53 ms
23,820 KB
testcase_14 AC 53 ms
23,220 KB
testcase_15 AC 51 ms
23,820 KB
testcase_16 AC 53 ms
23,276 KB
testcase_17 AC 54 ms
23,820 KB
testcase_18 AC 52 ms
23,484 KB
testcase_19 AC 51 ms
24,048 KB
testcase_20 AC 52 ms
23,312 KB
testcase_21 AC 52 ms
24,000 KB
testcase_22 AC 52 ms
23,868 KB
testcase_23 AC 52 ms
24,228 KB
testcase_24 AC 52 ms
23,412 KB
testcase_25 AC 52 ms
23,424 KB
testcase_26 AC 54 ms
23,208 KB
testcase_27 AC 54 ms
23,352 KB
testcase_28 AC 54 ms
23,388 KB
testcase_29 AC 54 ms
24,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

left, right = 1, 10**9+1
while right - left > 1:
    mid = (left + right) // 2
    print('? {}'.format(mid), flush=True)
    if int(input()):
        left = mid
    else:
        right = mid
print('! {}'.format(left), flush=True)
0