結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-20 00:57:23 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,608 KB |
| 平均クエリ数 | 30.93 |
| 最終ジャッジ日時 | 2024-07-17 05:58:50 |
| 合計ジャッジ時間 | 4,569 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
import sys
l = 1
r = 10 ** 9 + 1
while r - l > 1:
pos = (r + l) // 2
print ("? %d" % pos)
sys.stdout.flush()
flg = int(input())
if flg:
r = pos
else:
l = pos
print("! %d" % r)