結果
問題 |
No.3212 SUPER Guess the Number
|
ユーザー |
👑 |
提出日時 | 2025-07-19 13:41:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 82,768 KB |
実行使用メモリ | 70,928 KB |
平均クエリ数 | 21.83 |
最終ジャッジ日時 | 2025-07-25 21:00:44 |
合計ジャッジ時間 | 2,400 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 6 |
ソースコード
prev = 10**6 + 1 print("?", prev) ok, ng = 1, 10**6 + 1 while abs(ok - ng) > 1: mid = (ok + ng) // 2 curr = 2 * mid - prev if curr < prev: curr -= 1 else: curr += 1 print("?", curr) if (int(input()) == 1) == (prev < curr): ok = mid else: ng = mid prev = curr print("!", ok)