結果

問題 No.246 質問と回答
ユーザー dangodango
提出日時 2023-07-02 21:38:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 677 ms
コンパイル使用メモリ 86,516 KB
実行使用メモリ 87,520 KB
平均クエリ数 31.00
最終ジャッジ日時 2023-09-23 17:25:29
合計ジャッジ時間 6,578 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
87,156 KB
testcase_01 AC 114 ms
87,040 KB
testcase_02 AC 116 ms
86,780 KB
testcase_03 AC 116 ms
87,020 KB
testcase_04 AC 114 ms
87,500 KB
testcase_05 AC 116 ms
87,080 KB
testcase_06 AC 117 ms
87,416 KB
testcase_07 AC 116 ms
87,144 KB
testcase_08 AC 116 ms
87,496 KB
testcase_09 AC 112 ms
86,916 KB
testcase_10 AC 113 ms
87,488 KB
testcase_11 AC 114 ms
87,032 KB
testcase_12 AC 114 ms
87,096 KB
testcase_13 AC 114 ms
87,096 KB
testcase_14 AC 115 ms
87,160 KB
testcase_15 AC 115 ms
86,996 KB
testcase_16 AC 114 ms
86,868 KB
testcase_17 AC 114 ms
87,464 KB
testcase_18 AC 113 ms
86,912 KB
testcase_19 AC 116 ms
86,936 KB
testcase_20 AC 115 ms
87,388 KB
testcase_21 AC 114 ms
87,076 KB
testcase_22 AC 112 ms
87,028 KB
testcase_23 AC 112 ms
86,844 KB
testcase_24 AC 114 ms
87,488 KB
testcase_25 AC 112 ms
87,276 KB
testcase_26 AC 116 ms
86,912 KB
testcase_27 AC 114 ms
86,900 KB
testcase_28 AC 112 ms
87,520 KB
testcase_29 AC 113 ms
86,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = 10 ** 9, 1
for i in range(30):
    print("?", (x + y) // 2, flush=True)
    if int(input()):
        y = (x + y) // 2
    else:
        x = (x + y) // 2
print("!", y, flush=True)
0