結果

問題 No.1793 実数当てゲーム
ユーザー vwxyzvwxyz
提出日時 2024-01-02 18:17:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 25,984 KB
平均クエリ数 2230.56
最終ジャッジ日時 2024-01-02 18:17:09
合計ジャッジ時間 4,447 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
25,984 KB
testcase_01 AC 51 ms
25,984 KB
testcase_02 AC 149 ms
25,984 KB
testcase_03 AC 171 ms
25,984 KB
testcase_04 AC 149 ms
25,984 KB
testcase_05 AC 141 ms
25,984 KB
testcase_06 AC 140 ms
25,984 KB
testcase_07 AC 142 ms
25,984 KB
testcase_08 AC 142 ms
25,984 KB
testcase_09 AC 142 ms
25,984 KB
testcase_10 AC 142 ms
25,984 KB
testcase_11 AC 140 ms
25,984 KB
testcase_12 AC 173 ms
25,984 KB
testcase_13 AC 152 ms
25,984 KB
testcase_14 AC 150 ms
25,984 KB
testcase_15 AC 144 ms
25,984 KB
testcase_16 AC 157 ms
25,984 KB
testcase_17 AC 143 ms
25,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for t in range(T):
    l=1e-6
    r=12.22*1e74
    for _ in range(24):
        mid=(l*r)**.5
        print(f"? {mid:.12f}")
        S=input()
        assert S!="-1"
        if S=="Yes":
            l=mid
        elif S=="No":
            r=mid
        else:
            exit()
    ans=2*l*r/(l+r)
    print(f"! {ans:.12f}")
0