結果
問題 |
No.2252 Find Zero
|
ユーザー |
![]() |
提出日時 | 2023-01-19 23:43:21 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 282 ms |
コンパイル使用メモリ | 82,080 KB |
実行使用メモリ | 87,188 KB |
平均クエリ数 | 78.17 |
最終ジャッジ日時 | 2024-06-22 16:13:47 |
合計ジャッジ時間 | 3,075 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 RE * 4 |
ソースコード
n = int(input()) now = 0 while True: print(f"? {now} {now + 1}") x = int(input()) if x == now: print(f"! {now + 1}") exit() if x == now + 1: print(f"! {now}") exit() if now == n-1: print(f"! {n-1}") exit() now += 2