結果
| 問題 | No.1793 実数当てゲーム | 
| コンテスト | |
| ユーザー |  hotman78 | 
| 提出日時 | 2021-12-22 01:46:41 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 347 bytes | 
| コンパイル時間 | 347 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 28,328 KB | 
| 平均クエリ数 | 20.00 | 
| 最終ジャッジ日時 | 2024-09-28 13:32:06 | 
| 合計ジャッジ時間 | 6,506 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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())
            
            
            
        