結果

問題 No.2252 Find Zero
ユーザー ntudantuda
提出日時 2023-03-24 21:46:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 217 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 11,980 KB
実行使用メモリ 26,652 KB
平均クエリ数 117.44
最終ジャッジ日時 2023-10-18 20:56:56
合計ジャッジ時間 3,239 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 86 ms
26,532 KB
testcase_03 AC 114 ms
26,532 KB
testcase_04 AC 90 ms
26,532 KB
testcase_05 RE -
testcase_06 AC 87 ms
26,532 KB
testcase_07 AC 86 ms
26,532 KB
testcase_08 AC 105 ms
26,540 KB
testcase_09 RE -
testcase_10 AC 84 ms
26,532 KB
testcase_11 AC 85 ms
26,532 KB
testcase_12 RE -
testcase_13 AC 85 ms
26,532 KB
testcase_14 AC 86 ms
26,532 KB
testcase_15 RE -
testcase_16 AC 85 ms
26,532 KB
testcase_17 AC 84 ms
26,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(N//2+1):
    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