結果
| 問題 | No.3523 順路指定最近点 |
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2026-05-01 22:39:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 491 bytes |
| 記録 | |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 85,536 KB |
| 平均クエリ数 | 2.31 |
| 最終ジャッジ日時 | 2026-05-01 22:39:25 |
| 合計ジャッジ時間 | 8,588 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 RE * 22 |
ソースコード
N=int(input())
if N==2:
print('?',1,flush=True)
print(1)
ans,pos=map(int,input().split())
print('!',ans,flush=True)
exit()
print('?',2,flush=True)
print(1,N)
ans,pos=map(int,input().split())
z=ans
if ans==-1:
print('?',1,flush=True)
print(1)
ans,pos=map(int,input().split())
print('!',ans,flush=True)
exit()
p=[1]
print(p[1])
print('?',1,flush=True)
print(N)
ans2,pos2=map(int,input().split())
if pos2==1:
print('!',ans2,flush=True)
else:
print('!',z-ans2,flush=True)
ゼット