結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  leaf_1415 | 
| 提出日時 | 2019-11-29 21:50:44 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 312 ms / 2,000 ms | 
| コード長 | 549 bytes | 
| コンパイル時間 | 782 ms | 
| コンパイル使用メモリ | 61,492 KB | 
| 実行使用メモリ | 25,460 KB | 
| 平均クエリ数 | 709.58 | 
| 最終ジャッジ日時 | 2024-07-16 18:17:23 | 
| 合計ジャッジ時間 | 5,161 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
#include <iostream>
#include <string>
#include <vector>
#define llint long long
using namespace std;
llint n;
vector<llint> ans;
int main(void)
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	cin >> n;
	
	llint res;
	for(int i = 1; i <= n; i++){
		cout << "? " << n-1 << endl;
		for(int j = 1; j <= n; j++){
			if(i == j) continue;
			cout << j << " ";
		}
		cout << endl;
		cin >> res;
		if(res == 0) ans.push_back(i);
	}
	
	cout << "! " << ans.size() << endl;
	for(int i = 0; i < ans.size(); i++) cout << ans[i] << " "; cout << endl;
	
	return 0;
}
            
            
            
        