結果

問題 No.2252 Find Zero
ユーザー ねしんねしん
提出日時 2024-07-28 23:06:28
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 171 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 88,568 KB
平均クエリ数 78.17
最終ジャッジ日時 2024-07-28 23:06:32
合計ジャッジ時間 3,967 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 99 ms
68,548 KB
testcase_03 AC 113 ms
76,584 KB
testcase_04 AC 88 ms
69,668 KB
testcase_05 AC 85 ms
68,912 KB
testcase_06 AC 89 ms
68,392 KB
testcase_07 AC 92 ms
69,564 KB
testcase_08 AC 105 ms
70,412 KB
testcase_09 AC 110 ms
77,636 KB
testcase_10 AC 86 ms
69,624 KB
testcase_11 AC 116 ms
68,408 KB
testcase_12 RE -
testcase_13 AC 87 ms
69,764 KB
testcase_14 AC 90 ms
69,280 KB
testcase_15 RE -
testcase_16 AC 86 ms
70,364 KB
testcase_17 AC 92 ms
69,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
for i in range(0,N,2):
	print("?",i,i+1,flush=True)
	c=int(input())
	if c==i:
		print("!",i+1)
		exit()
	elif c==i+1:
		print("!",i)
		exit()
print("!",N-1)
0