結果
| 問題 |
No.1793 実数当てゲーム
|
| コンテスト | |
| ユーザー |
hotman78
|
| 提出日時 | 2021-12-22 01:37:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 980 ms |
| コンパイル使用メモリ | 82,016 KB |
| 実行使用メモリ | 99,888 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-09-28 13:31:31 |
| 合計ジャッジ時間 | 4,490 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 18 |
ソースコード
t=int(input())
from decimal import *
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).exp()
if f(m):
l=m
else:
r=m
print("! "+((l+r)/2).exp())
hotman78