結果

問題 No.246 質問と回答
ユーザー gorugo30gorugo30
提出日時 2021-03-17 23:24:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 909 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 87,480 KB
平均クエリ数 30.87
最終ジャッジ日時 2023-09-23 20:37:15
合計ジャッジ時間 5,470 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
86,860 KB
testcase_01 AC 101 ms
86,812 KB
testcase_02 AC 100 ms
86,968 KB
testcase_03 AC 101 ms
86,668 KB
testcase_04 AC 102 ms
86,784 KB
testcase_05 AC 101 ms
86,820 KB
testcase_06 AC 104 ms
86,960 KB
testcase_07 AC 102 ms
87,244 KB
testcase_08 AC 103 ms
87,480 KB
testcase_09 AC 99 ms
86,984 KB
testcase_10 AC 103 ms
87,028 KB
testcase_11 AC 106 ms
87,208 KB
testcase_12 AC 107 ms
86,780 KB
testcase_13 AC 102 ms
87,072 KB
testcase_14 AC 105 ms
87,236 KB
testcase_15 AC 104 ms
87,092 KB
testcase_16 AC 102 ms
87,404 KB
testcase_17 AC 100 ms
87,284 KB
testcase_18 AC 101 ms
87,296 KB
testcase_19 AC 99 ms
86,832 KB
testcase_20 AC 104 ms
86,848 KB
testcase_21 AC 99 ms
86,788 KB
testcase_22 AC 102 ms
87,032 KB
testcase_23 AC 100 ms
86,728 KB
testcase_24 AC 102 ms
86,484 KB
testcase_25 AC 100 ms
86,932 KB
testcase_26 AC 101 ms
86,668 KB
testcase_27 AC 104 ms
86,524 KB
testcase_28 AC 99 ms
87,064 KB
testcase_29 AC 101 ms
87,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

en = 10 ** 9
st = -1
while en - st > 1:
    mid = (en + st) // 2
    print("?", mid, flush = True)
    if int(input()) == 1:
        st = mid
    else:
        en = mid
print("!", st, flush = True)
0