結果

問題 No.246 質問と回答
ユーザー daku9640daku9640
提出日時 2018-05-13 22:51:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 24,252 KB
平均クエリ数 30.87
最終ジャッジ日時 2023-09-23 20:27:25
合計ジャッジ時間 3,248 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
23,516 KB
testcase_01 AC 54 ms
24,252 KB
testcase_02 AC 50 ms
23,916 KB
testcase_03 AC 50 ms
23,940 KB
testcase_04 AC 54 ms
23,460 KB
testcase_05 AC 50 ms
23,620 KB
testcase_06 AC 51 ms
23,568 KB
testcase_07 AC 50 ms
23,568 KB
testcase_08 AC 52 ms
24,156 KB
testcase_09 AC 50 ms
24,000 KB
testcase_10 AC 52 ms
23,520 KB
testcase_11 AC 49 ms
23,628 KB
testcase_12 AC 51 ms
23,616 KB
testcase_13 AC 50 ms
23,580 KB
testcase_14 AC 49 ms
23,584 KB
testcase_15 AC 52 ms
23,604 KB
testcase_16 AC 50 ms
23,448 KB
testcase_17 AC 52 ms
23,608 KB
testcase_18 AC 52 ms
24,132 KB
testcase_19 AC 54 ms
23,660 KB
testcase_20 AC 50 ms
23,576 KB
testcase_21 AC 50 ms
23,724 KB
testcase_22 AC 52 ms
24,036 KB
testcase_23 AC 50 ms
23,724 KB
testcase_24 AC 50 ms
23,548 KB
testcase_25 AC 50 ms
23,964 KB
testcase_26 AC 51 ms
23,820 KB
testcase_27 AC 50 ms
23,444 KB
testcase_28 AC 51 ms
23,684 KB
testcase_29 AC 49 ms
24,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l = 0
r = int(1e9) + 1
mid = t = 0
while l != r - 1:
    mid = (l + r) // 2
    print('?', mid)
    t = int(input())
    if t == 1:
        l = mid
    else:
        r = mid
print('!', l)
0