結果
| 問題 | No.3523 順路指定最近点 |
| コンテスト | |
| ユーザー |
tau1235
|
| 提出日時 | 2026-05-01 22:09:54 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 2,760 ms |
| コンパイル使用メモリ | 331,744 KB |
| 実行使用メモリ | 30,064 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-05-01 22:10:01 |
| 合計ジャッジ時間 | 5,102 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vector<int> p(n-1);
iota(p.begin(),p.end(),1);
cout<<"? "<<n-1<<endl;
for (int i=0;i<n-1;i++) cout<<p[i]<<" \n"[i==n-2];
cout<<flush;
int w,i;
cin>>w>>i;
cout<<"! "<<w<<endl;
}
tau1235