結果

問題 No.1793 実数当てゲーム
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-12-23 21:45:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 443 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,984 KB
実行使用メモリ 26,584 KB
平均クエリ数 2230.56
最終ジャッジ日時 2023-10-17 23:31:22
合計ジャッジ時間 4,152 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
26,584 KB
testcase_01 AC 56 ms
26,584 KB
testcase_02 AC 155 ms
26,584 KB
testcase_03 AC 153 ms
26,584 KB
testcase_04 AC 153 ms
26,584 KB
testcase_05 AC 147 ms
26,584 KB
testcase_06 AC 147 ms
26,584 KB
testcase_07 AC 146 ms
26,584 KB
testcase_08 AC 146 ms
26,584 KB
testcase_09 AC 147 ms
26,584 KB
testcase_10 AC 148 ms
26,584 KB
testcase_11 AC 147 ms
26,584 KB
testcase_12 AC 153 ms
26,584 KB
testcase_13 AC 158 ms
26,584 KB
testcase_14 AC 157 ms
26,584 KB
testcase_15 AC 152 ms
26,584 KB
testcase_16 AC 156 ms
26,584 KB
testcase_17 AC 151 ms
26,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

import sys
from sys import stdin

TT = int(stdin.readline())

for qloop in range(TT):

    L = 10**-6
    R = 12.22*(10**74)

    for loop in range(24):

        M = (L*R)**0.5
        print ("?","%f" % M,flush=True)

        S = stdin.readline()[:-1]
        if S[0] == "Y":
            L = M
        elif S[0] == "N":
            R = M
        else:
            sys.exit(1)

    print ("!", "%f" % ((L*R)**0.5) , flush=True)
    
0