結果
問題 | No.2252 Find Zero |
ユーザー |
![]() |
提出日時 | 2023-01-19 22:30:27 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 81,772 KB |
実行使用メモリ | 86,916 KB |
平均クエリ数 | 105.72 |
最終ジャッジ日時 | 2024-06-22 14:57:40 |
合計ジャッジ時間 | 2,947 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 RE * 3 |
ソースコード
n = int(input()) now = 0 while True: print(f"? {now + 1} {now + 2}") x = int(input()) if x == now + 1: print(f"! {now + 2}") exit() if x == now + 2: print(f"! {now + 1}") exit() if now == n-1: print(f"! {n}") exit() now += 2