結果
問題 |
No.1793 実数当てゲーム
|
ユーザー |
![]() |
提出日時 | 2021-12-22 00:34:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 272 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,872 KB |
平均クエリ数 | 27.00 |
最終ジャッジ日時 | 2024-09-28 13:23:21 |
合計ジャッジ時間 | 2,741 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 18 |
ソースコード
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))