結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-11-04 07:30:54 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 361 ms / 2,000 ms | 
| コード長 | 757 bytes | 
| コンパイル時間 | 908 ms | 
| コンパイル使用メモリ | 95,256 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 709.58 | 
| 最終ジャッジ日時 | 2024-07-17 07:14:58 | 
| 合計ジャッジ時間 | 6,330 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
vector<int> ans;
int main() {
	int n;
	cin >> n;
	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;
		bool b;
		cin >> b;
		if (!b) {
			ans.emplace_back(i);
		}
	}
	cout << "! " << ans.size() << endl;
	for (int i = 0; i < ans.size(); i++) {
		cout << ans[i] << " ";
	}
	cout << endl;
}
            
            
            
        