結果
| 問題 | No.1793 実数当てゲーム | 
| コンテスト | |
| ユーザー |  hotman78 | 
| 提出日時 | 2021-12-22 01:46:26 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 347 bytes | 
| コンパイル時間 | 262 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 99,136 KB | 
| 平均クエリ数 | 20.00 | 
| 最終ジャッジ日時 | 2024-09-28 13:32:12 | 
| 合計ジャッジ時間 | 9,703 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 18 | 
ソースコード
t=int(input())
from decimal import *
getcontext().prec = 1000
def f(x):
    print("? "+str(x))
    return input()=="Yes"
while t!=0:
    t-=1
    cnt=24
    l=Decimal(-20)
    r=Decimal(171)
    while cnt!=0:
        cnt-=1
        m=((l+r)/2)
        if f(m.exp()):
            l=m
        else:
            r=m
    print("! "+((l+r)/2).exp())
            
            
            
        