結果

問題 No.2252 Find Zero
ユーザー 👑 H20H20
提出日時 2023-03-24 21:31:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 81,668 KB
実行使用メモリ 80,404 KB
平均クエリ数 78.17
最終ジャッジ日時 2023-10-18 20:47:55
合計ジャッジ時間 3,434 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 98 ms
69,752 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 92 ms
69,760 KB
testcase_11 AC 92 ms
69,760 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 93 ms
69,760 KB
testcase_15 WA -
testcase_16 AC 92 ms
69,760 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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