結果

問題 No.2252 Find Zero
ユーザー vwxyzvwxyz
提出日時 2023-12-21 03:34:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 25,992 KB
平均クエリ数 117.44
最終ジャッジ日時 2023-12-21 03:34:49
合計ジャッジ時間 3,498 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
25,992 KB
testcase_01 AC 108 ms
25,992 KB
testcase_02 AC 87 ms
25,992 KB
testcase_03 AC 109 ms
25,992 KB
testcase_04 AC 85 ms
25,992 KB
testcase_05 WA -
testcase_06 AC 83 ms
25,992 KB
testcase_07 AC 84 ms
25,992 KB
testcase_08 AC 99 ms
25,992 KB
testcase_09 WA -
testcase_10 AC 82 ms
25,992 KB
testcase_11 AC 80 ms
25,992 KB
testcase_12 AC 79 ms
25,992 KB
testcase_13 AC 80 ms
25,992 KB
testcase_14 AC 90 ms
25,992 KB
testcase_15 AC 89 ms
25,992 KB
testcase_16 AC 79 ms
25,992 KB
testcase_17 AC 81 ms
25,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
for i in range(N//2):
    print("?",i,i+1)
    z=int(input())
    if z in (i,i+1):
        print("!",z^i^(i+1))
        break
else:
    print("!",N-1)
0