結果
問題 |
No.2252 Find Zero
|
ユーザー |
![]() |
提出日時 | 2023-01-19 22:32:10 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 86,296 KB |
平均クエリ数 | 78.17 |
最終ジャッジ日時 | 2024-06-22 16:12:42 |
合計ジャッジ時間 | 3,123 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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}") exit() now += 2