結果
| 問題 |
No.2252 Find Zero
|
| コンテスト | |
| ユーザー |
navel_tos
|
| 提出日時 | 2024-02-01 01:22:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 143 ms / 2,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 82,424 KB |
| 実行使用メモリ | 80,060 KB |
| 平均クエリ数 | 78.17 |
| 最終ジャッジ日時 | 2024-09-28 10:26:21 |
| 合計ジャッジ時間 | 3,832 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 |
ソースコード
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()
navel_tos