結果
| 問題 |
No.934 Explosive energy drink
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-03-06 19:18:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 511 bytes |
| コンパイル時間 | 1,522 ms |
| コンパイル使用メモリ | 169,228 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 709.54 |
| 最終ジャッジ日時 | 2024-07-16 20:33:57 |
| 合計ジャッジ時間 | 9,574 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 24 |
ソースコード
#include<bits/stdc++.h>
int main(){
int n;std::cin>>n;
std::vector<int>a;
for(int i=0;i<n;i++){
std::cout<<"? "<<n-1<<std::endl;
for(int j=0;j<n;j++){
if(i==j)continue;
std::cout<<(j==!i?"":" ")<<j+1;
}
std::cout<<std::endl;
int x;std::cin>>x;
if(x)a.push_back(i+1);
}
std::cout<<"! "<<a.size()<<std::endl;
for(int i=0;i<(int)a.size();i++){
std::cout<<(i?" ":"")<<a.at(i);
}
std::cout<<std::endl;
}
ngtkana