結果

問題 No.1793 実数当てゲーム
コンテスト
ユーザー tute7627
提出日時 2021-12-22 00:34:48
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 373 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 554 ms
コンパイル使用メモリ 21,080 KB
実行使用メモリ 40,996 KB
平均クエリ数 27.00
最終ジャッジ日時 2026-04-15 04:16:44
合計ジャッジ時間 7,159 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import math

T = int(input())

while T >= 0:
    T-=1
    ok = 5*(10**-6)
    ng = 12.22*(10**74)
    for i in range(24):
        mid = math.exp((math.log(ok) + math.log(ng)) / 2)
        print("? {:.10f}".format(mid), flush=True)
        ans = input()
        if ans == "Yes":
            ok = mid
        else:
            ng = mid

    print("{:.10f}".format(ok))
    

0