結果

問題 No.2252 Find Zero
ユーザー sotanishy
提出日時 2023-03-24 21:23:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 842 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 78,300 KB
平均クエリ数 78.17
最終ジャッジ日時 2024-09-18 16:39:52
合計ジャッジ時間 2,871 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
for i in range(N//2):
    x = 2*i
    y = x+1
    print('?', x, y, flush=True)
    z = int(input())
    if z == x or z == y:
        print('!', z, flush=True)
        exit()
print('!', N-1, flush=True)
0