結果

問題 No.246 質問と回答
ユーザー akitsugu777akitsugu777
提出日時 2019-08-08 15:43:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 24,312 KB
平均クエリ数 30.90
最終ジャッジ日時 2023-09-23 20:32:15
合計ジャッジ時間 3,408 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
24,072 KB
testcase_01 AC 51 ms
24,168 KB
testcase_02 AC 52 ms
23,964 KB
testcase_03 AC 51 ms
23,468 KB
testcase_04 AC 51 ms
23,652 KB
testcase_05 AC 49 ms
24,312 KB
testcase_06 AC 56 ms
23,620 KB
testcase_07 AC 51 ms
24,072 KB
testcase_08 AC 51 ms
24,312 KB
testcase_09 AC 51 ms
23,740 KB
testcase_10 AC 50 ms
23,400 KB
testcase_11 AC 49 ms
23,572 KB
testcase_12 AC 49 ms
24,048 KB
testcase_13 AC 51 ms
23,696 KB
testcase_14 AC 51 ms
23,664 KB
testcase_15 AC 52 ms
23,528 KB
testcase_16 AC 52 ms
23,928 KB
testcase_17 AC 52 ms
24,096 KB
testcase_18 AC 52 ms
23,664 KB
testcase_19 AC 51 ms
23,556 KB
testcase_20 AC 53 ms
24,108 KB
testcase_21 AC 51 ms
23,664 KB
testcase_22 AC 55 ms
23,448 KB
testcase_23 AC 51 ms
23,448 KB
testcase_24 AC 52 ms
24,312 KB
testcase_25 AC 51 ms
23,352 KB
testcase_26 AC 51 ms
23,952 KB
testcase_27 AC 52 ms
23,676 KB
testcase_28 AC 51 ms
24,048 KB
testcase_29 AC 51 ms
23,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l = 1
h = 10**9

while l != h - 1:
    m = (l+h) // 2
    print('?', m)
    
    if int(input()) == 1:
        l = m
    else:
        h = m
        
print('!', l)
0