結果
問題 |
No.246 質問と回答
|
ユーザー |
![]() |
提出日時 | 2017-05-14 22:54:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 274 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,608 KB |
平均クエリ数 | 31.00 |
最終ジャッジ日時 | 2024-07-16 13:41:22 |
合計ジャッジ時間 | 4,955 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 14 |
ソースコード
# -*- coding: utf-8 -* import sys left = 1 right = 10 ** 9 + 1 mid = 0 while right - left > 1: mid = (left + right) / 2 print("? %d" % mid) sys.stdout.flush() res = int(input()) if res: left = mid else: right = mid print("! %d" % mid)