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