結果
| 問題 |
No.2252 Find Zero
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-03-24 21:27:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 27,592 KB |
| 平均クエリ数 | 78.17 |
| 最終ジャッジ日時 | 2024-09-18 16:43:54 |
| 合計ジャッジ時間 | 3,151 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 4 |
ソースコード
import sys
input = sys.stdin.readline
N=int(input())
for i in range(0,N,2):
j=i+1
print("?",i,j,flush=True)
x=int(input())
if x==i:
print("!",j,flush=True)
break
elif x==j:
print("!",i,flush=True)
break
else:
print("!",N-1,flush=True)
titia