結果
| 問題 |
No.246 質問と回答
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2025-02-10 19:42:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 1,669 ms |
| コンパイル使用メモリ | 81,780 KB |
| 実行使用メモリ | 84,260 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2025-02-10 19:43:01 |
| 合計ジャッジ時間 | 6,611 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 30 |
ソースコード
def query_ask(x):
print(f"? {x}", flush=True)
if DEBUG:
return ANS <= x
else:
v = 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**2+1),1,key=query_ask)
query_ans(ans)
convexineq