結果

問題 No.2252 Find Zero
ユーザー shobonvipshobonvip
提出日時 2023-01-19 23:43:21
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 232 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 95,508 KB
平均クエリ数 78.17
最終ジャッジ日時 2023-09-04 18:22:02
合計ジャッジ時間 4,144 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 109 ms
87,784 KB
testcase_03 AC 132 ms
87,616 KB
testcase_04 AC 112 ms
87,176 KB
testcase_05 AC 110 ms
87,328 KB
testcase_06 AC 110 ms
87,644 KB
testcase_07 AC 112 ms
87,756 KB
testcase_08 AC 127 ms
87,728 KB
testcase_09 AC 141 ms
87,260 KB
testcase_10 AC 110 ms
87,144 KB
testcase_11 AC 111 ms
87,036 KB
testcase_12 RE -
testcase_13 AC 109 ms
87,364 KB
testcase_14 AC 112 ms
87,060 KB
testcase_15 RE -
testcase_16 AC 109 ms
87,216 KB
testcase_17 AC 109 ms
87,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
now = 0
while True:
	print(f"? {now} {now + 1}")
	x = int(input())
	if x == now:
		print(f"! {now + 1}")
		exit()
	if x == now + 1:
		print(f"! {now}")
		exit()
	if now == n-1:
		print(f"! {n-1}")
		exit()
	now += 2
0