結果

問題 No.2252 Find Zero
ユーザー navel_tosnavel_tos
提出日時 2024-02-01 01:22:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 80,044 KB
平均クエリ数 78.17
最終ジャッジ日時 2024-02-01 01:22:44
合計ジャッジ時間 4,043 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
69,468 KB
testcase_01 AC 136 ms
80,044 KB
testcase_02 AC 88 ms
69,468 KB
testcase_03 AC 112 ms
74,948 KB
testcase_04 AC 93 ms
69,468 KB
testcase_05 AC 90 ms
69,468 KB
testcase_06 AC 91 ms
69,468 KB
testcase_07 AC 92 ms
69,468 KB
testcase_08 AC 104 ms
69,460 KB
testcase_09 AC 118 ms
74,940 KB
testcase_10 AC 94 ms
69,468 KB
testcase_11 AC 91 ms
69,468 KB
testcase_12 AC 91 ms
69,468 KB
testcase_13 AC 91 ms
69,468 KB
testcase_14 AC 89 ms
69,468 KB
testcase_15 AC 91 ms
69,468 KB
testcase_16 AC 91 ms
69,468 KB
testcase_17 AC 92 ms
69,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(N//2):
  a,b = 2*i, 2*i+1
  print('?',a,b)
  c = int(input())
  if a == c:
    print('!',b)
    exit()
  if b == c:
    print('!',a)
    exit()
print('!',N-1)
exit()
0