結果
問題 | No.934 Explosive energy drink |
ユーザー |
|
提出日時 | 2020-02-15 23:29:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 354 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 1,049 ms |
コンパイル使用メモリ | 70,144 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 709.58 |
最終ジャッジ日時 | 2024-07-16 19:30:51 |
合計ジャッジ時間 | 5,677 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include<iostream> #include<vector> using namespace std; int main(){ int n; cin >> n; vector<int> v; for(int i=1;i<=n;i++){ cout <<"? " <<n-1 << endl; for(int j=1;j<=n;j++) if(j!=i) cout << j << " "; cout << endl; int ans; cin >> ans; if(ans!=1) v.push_back(i); } cout << "! " << v.size() << endl; for(auto x:v) cout << x << " "; cout << endl; return 0; }