結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
25,984 KB
testcase_01 AC 53 ms
25,984 KB
testcase_02 AC 148 ms
25,984 KB
testcase_03 AC 153 ms
25,984 KB
testcase_04 AC 146 ms
25,984 KB
testcase_05 AC 142 ms
25,984 KB
testcase_06 AC 166 ms
25,984 KB
testcase_07 AC 144 ms
25,984 KB
testcase_08 AC 145 ms
25,984 KB
testcase_09 AC 140 ms
25,984 KB
testcase_10 AC 141 ms
25,984 KB
testcase_11 AC 146 ms
25,984 KB
testcase_12 AC 147 ms
25,984 KB
testcase_13 AC 152 ms
25,984 KB
testcase_14 AC 163 ms
25,984 KB
testcase_15 AC 143 ms
25,984 KB
testcase_16 AC 154 ms
25,984 KB
testcase_17 AC 145 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=(l*r)**.5
    print(f"! {ans:.12f}")
0