結果
| 問題 | No.3523 順路指定最近点 |
| コンテスト | |
| ユーザー |
tau1235
|
| 提出日時 | 2026-05-04 00:01:57 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 3,626 ms |
| コンパイル使用メモリ | 333,108 KB |
| 実行使用メモリ | 30,064 KB |
| 平均クエリ数 | 10.33 |
| 最終ジャッジ日時 | 2026-05-04 00:02:06 |
| 合計ジャッジ時間 | 5,401 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vector<int> vec={0};
for (int t=0;t<n-1;t++){
int l=t+1;
cout<<"? "<<l<<endl;
for (int i=0;i<l;i++) cout<<vec[i]+1<<" \n"[i==l-1];
cout<<flush;
int w,i;
cin>>w>>i;
i--;
vec.push_back(i);
if (i==n-1){
cout<<"! "<<w<<endl;
return 0;
}
}
}
tau1235