結果

問題 No.246 質問と回答
ユーザー lllllll88938494lllllll88938494
提出日時 2023-05-08 18:11:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 87,688 KB
平均クエリ数 101.00
最終ジャッジ日時 2023-08-16 19:08:29
合計ジャッジ時間 6,258 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
86,944 KB
testcase_01 AC 116 ms
87,056 KB
testcase_02 AC 118 ms
87,124 KB
testcase_03 AC 116 ms
87,256 KB
testcase_04 AC 114 ms
87,004 KB
testcase_05 AC 114 ms
87,104 KB
testcase_06 AC 114 ms
87,180 KB
testcase_07 AC 113 ms
87,144 KB
testcase_08 AC 115 ms
87,572 KB
testcase_09 AC 113 ms
87,428 KB
testcase_10 AC 111 ms
86,992 KB
testcase_11 AC 111 ms
86,764 KB
testcase_12 AC 112 ms
87,024 KB
testcase_13 AC 114 ms
87,136 KB
testcase_14 AC 118 ms
86,840 KB
testcase_15 AC 114 ms
87,412 KB
testcase_16 AC 113 ms
87,380 KB
testcase_17 AC 114 ms
87,000 KB
testcase_18 AC 114 ms
86,680 KB
testcase_19 AC 115 ms
87,688 KB
testcase_20 AC 116 ms
87,212 KB
testcase_21 AC 119 ms
87,452 KB
testcase_22 AC 115 ms
87,492 KB
testcase_23 AC 114 ms
86,992 KB
testcase_24 AC 110 ms
87,092 KB
testcase_25 AC 112 ms
87,288 KB
testcase_26 AC 112 ms
87,336 KB
testcase_27 AC 119 ms
87,368 KB
testcase_28 AC 114 ms
87,556 KB
testcase_29 AC 114 ms
87,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ok=1
ng=10**10 
for  i in range(100):
    mid=(ok+ng)//2
    print(f'? {mid}',flush=True)
    t=int(input())
    if t == 1:
        ok = mid
    else:
        ng = mid

print(f'! {ok}')
0