結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  shop_one | 
| 提出日時 | 2019-11-29 22:55:03 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 753 bytes | 
| コンパイル時間 | 816 ms | 
| コンパイル使用メモリ | 75,704 KB | 
| 実行使用メモリ | 25,324 KB | 
| 平均クエリ数 | 709.54 | 
| 最終ジャッジ日時 | 2024-07-16 18:43:41 | 
| 合計ジャッジ時間 | 5,028 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 WA * 1 | 
ソースコード
// I SELL YOU...! 
#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
#include<queue>
#include<set>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
signed main(){
  ll n,res;
  cin >> n;
  ll ri,le;
  ri=1;
  set<ll> mzs;
  for(int i=n-1;i>=1;i--){
    set<ll> tmp(mzs);
    for(int j=1;j<=i;j++){
      tmp.insert(j);
    }
    cout << "? "<<tmp.size()<<"\n";
    for(auto j:tmp){
      cout << j<<" ";
    }
    cout << endl;
    cin >> res;
    if(res==0) mzs.insert(i+1);
  }
  cout <<"? "<<mzs.size()<<"\n";
  for(auto i:mzs){
    cout << i<<" ";
  }
  cout << endl;
  cin >> res;
  if(res==0) mzs.insert(1);
  cout << "! "<<mzs.size()<<"\n";
  for(auto i:mzs){
    cout << i<<" ";
  }
  cout << endl;
}
            
            
            
        