結果
| 問題 |
No.2252 Find Zero
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-03-24 21:31:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 81,728 KB |
| 実行使用メモリ | 80,284 KB |
| 平均クエリ数 | 78.17 |
| 最終ジャッジ日時 | 2024-09-18 16:47:44 |
| 合計ジャッジ時間 | 3,226 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 13 |
ソースコード
N = int(input())
for i in range(N//2):
print('?',i*2,i*2+1)
z = int(input())
if z==i*2:
print('!',i+1,flush=True)
exit()
if z==i*2+1:
print('!',i,flush=True)
exit()
print(N,flush=True)
H20