結果

問題 No.246 質問と回答
ユーザー rpy3cpprpy3cpp
提出日時 2015-07-17 22:34:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 24,264 KB
平均クエリ数 30.90
最終ジャッジ日時 2023-09-23 19:50:49
合計ジャッジ時間 3,473 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
23,592 KB
testcase_01 AC 54 ms
23,656 KB
testcase_02 AC 49 ms
23,676 KB
testcase_03 AC 51 ms
24,264 KB
testcase_04 AC 50 ms
23,716 KB
testcase_05 AC 49 ms
23,564 KB
testcase_06 AC 50 ms
23,416 KB
testcase_07 AC 51 ms
23,508 KB
testcase_08 AC 49 ms
23,688 KB
testcase_09 AC 49 ms
23,688 KB
testcase_10 AC 50 ms
23,668 KB
testcase_11 AC 49 ms
23,396 KB
testcase_12 AC 50 ms
23,448 KB
testcase_13 AC 48 ms
23,688 KB
testcase_14 AC 51 ms
23,620 KB
testcase_15 AC 50 ms
23,844 KB
testcase_16 AC 51 ms
23,436 KB
testcase_17 AC 50 ms
23,832 KB
testcase_18 AC 52 ms
23,664 KB
testcase_19 AC 51 ms
24,240 KB
testcase_20 AC 50 ms
24,240 KB
testcase_21 AC 49 ms
24,048 KB
testcase_22 AC 50 ms
23,440 KB
testcase_23 AC 52 ms
23,592 KB
testcase_24 AC 51 ms
23,668 KB
testcase_25 AC 51 ms
24,252 KB
testcase_26 AC 51 ms
23,844 KB
testcase_27 AC 50 ms
23,244 KB
testcase_28 AC 50 ms
23,400 KB
testcase_29 AC 49 ms
23,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

lower = 1
upper = 10**9 + 1

while lower + 1 < upper:
    mid = (lower + upper) // 2
    print('? {}'.format(mid))
    is_larger = int(input())
    if is_larger:
        lower = mid
    else:
        upper = mid
print('! {}'.format(lower))
0