結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-20 01:06:30 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,932 KB |
| 平均クエリ数 | 30.93 |
| 最終ジャッジ日時 | 2026-08-15 04:43:19 |
| 合計ジャッジ時間 | 5,904 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
import sys
l = 0
r = 10 ** 9 + 1
n = 140
while r - l > 1:
pos = (r + l) // 2
print ("? " + str(pos), end="\n")
sys.stdout.flush()
flg = int(input())
if flg:
r = pos
else:
l = pos
print("! " + str(r), end="\n")
sys.stdout.flush()