結果
問題 | No.1793 実数当てゲーム |
ユーザー |
|
提出日時 | 2021-12-22 00:24:43 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 555 bytes |
コンパイル時間 | 657 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 94,176 KB |
平均クエリ数 | 321.67 |
最終ジャッジ日時 | 2024-09-28 13:22:29 |
合計ジャッジ時間 | 4,275 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 RE * 15 |
ソースコード
def query(x):print('?', '{0:.10f}'.format(x),flush=True)s = input()if s == -1:exit()return True if s == 'Yes' else Falsedef solve():ng = 0ok = 1222 * pow(10, 72)while True:if abs(ng - ok) / abs(ok) <= pow(10, -5) or abs(ng - ok) <= pow(10, -5):print('!', '{0:.10f}'.format(ok),flush=True)breakmid = ok * pow(10, -5)if query(mid):ok = midelse:continuet = int(input())for _ in range(t):solve()