結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  Ogtsn99 | 
| 提出日時 | 2019-11-29 22:29:09 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 307 ms / 2,000 ms | 
| コード長 | 1,144 bytes | 
| コンパイル時間 | 1,697 ms | 
| コンパイル使用メモリ | 172,400 KB | 
| 実行使用メモリ | 25,476 KB | 
| 平均クエリ数 | 709.58 | 
| 最終ジャッジ日時 | 2024-07-16 18:38:12 | 
| 合計ジャッジ時間 | 6,054 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rrep(i,n) for(int (i)=((n)-1);(i)>=0;(i)--)
#define itn int
#define all(x) (x).begin(),(x).end()
#define F first
#define S second
const long long INF = 1LL << 60;
const int MOD = 1000000007;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
signed main(void){
    int n; cin>>n;
    int cnt = n;
    vector <int> a(n);
    rep(i,n){
        a[i] = i+1;
    }
    vector <int> tans;
    rep(i,n){
        cout<<"?"<<' '<<n-1<<endl;
        rep(j,n){
            if(j == i) continue;
            else cout<<a[j]<<' ';
        }
        cout<<endl;
        cout.flush();
        int ans;
        cin>>ans;
           
        if(ans == 0){
            tans.push_back(a[i]);
            
            cnt--;
        }
    }
    cout<<'!'<< ' '<< tans.size() <<endl;
    rep(i,tans.size()){
        cout<<tans[i]<<' ';
    }
    cout<<endl;
    cout.flush();
    return 0;  
}
            
            
            
        