結果
| 問題 |
No.246 質問と回答
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2025-02-10 19:45:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 82,448 KB |
| 実行使用メモリ | 71,644 KB |
| 平均クエリ数 | 30.07 |
| 最終ジャッジ日時 | 2025-02-10 19:45:19 |
| 合計ジャッジ時間 | 5,586 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
def query_ask(x):
print(f"? {x}", flush=True)
if DEBUG:
return ANS <= x
else:
return int(input())
def query_ans(x):
print(f"! {x}", flush=True)
DEBUG = 0
if DEBUG:
print("DEBUG MODE!")
ANS = 10
from bisect import bisect_left
ans = bisect_left(range(10**9+1),1,key=query_ask)
query_ans(ans)
convexineq