結果

問題 No.2252 Find Zero
ユーザー ntudantuda
提出日時 2023-03-24 21:45:54
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 11,840 KB
実行使用メモリ 26,656 KB
平均クエリ数 117.44
最終ジャッジ日時 2023-10-18 20:56:10
合計ジャッジ時間 3,001 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

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