結果
問題 |
No.246 質問と回答
|
ユーザー |
![]() |
提出日時 | 2022-08-01 04:05:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 116 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 27,736 KB |
平均クエリ数 | 30.00 |
最終ジャッジ日時 | 2024-07-21 11:21:09 |
合計ジャッジ時間 | 5,344 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 30 |
ソースコード
import sys readline=sys.stdin.readline def Interactive(*query): print(*query) sys.stdout.flush() return input() def Bisect_Int(ok,ng,is_ok): while abs(ok-ng)>1: mid=(ok+ng)//2 if is_ok(mid): ok=mid else: ng=mid return ok def is_ok(x): return int(Interactive("?",x)) ans=Bisect_Int(1,1<<30,is_ok)