結果

問題 No.1793 実数当てゲーム
ユーザー KudeKude
提出日時 2021-12-22 14:26:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 24,396 KB
平均クエリ数 2230.56
最終ジャッジ日時 2023-10-14 14:24:36
合計ジャッジ時間 5,038 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
23,764 KB
testcase_01 AC 43 ms
24,396 KB
testcase_02 AC 146 ms
24,072 KB
testcase_03 AC 145 ms
23,420 KB
testcase_04 AC 145 ms
23,652 KB
testcase_05 AC 140 ms
23,524 KB
testcase_06 AC 140 ms
23,932 KB
testcase_07 AC 138 ms
24,252 KB
testcase_08 AC 139 ms
23,352 KB
testcase_09 AC 140 ms
23,760 KB
testcase_10 AC 138 ms
23,964 KB
testcase_11 AC 139 ms
23,676 KB
testcase_12 AC 144 ms
23,508 KB
testcase_13 AC 147 ms
23,800 KB
testcase_14 AC 150 ms
24,228 KB
testcase_15 AC 144 ms
23,388 KB
testcase_16 AC 147 ms
23,412 KB
testcase_17 AC 142 ms
23,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    l, r = 1e-6, 12.22e74
    for _ in range(24):
        c = (l*r) ** 0.5
        print(f'? {c:.8f}')
        if input() == 'Yes':
            l = c
        else:
            r = c
    print(f'! {2*l*r / (l+r):.8f}')
0