結果
| 問題 | No.2252 Find Zero |
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2023-03-24 21:23:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 82,008 KB |
| 平均クエリ数 | 78.17 |
| 最終ジャッジ日時 | 2026-04-06 18:06:30 |
| 合計ジャッジ時間 | 2,518 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 14 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
for i in range(N//2):
x = 2*i
y = x+1
print('?', x, y, flush=True)
z = int(input())
if z == x or z == y:
print('!', z, flush=True)
exit()
print('!', N-1, flush=True)
sotanishy