- juxq's blog
 STL 经典例题
- @ 2023-7-13 22:22:57
 
明明随机数
#include <bits/stdc++.h>
using namespace std;
int n, x;
set<int> k;
int main() {
	cin >> n;
	while(n--){
		cin >> x;
		k.insert(x);
	}
	cout << k.size() << endl;
	for(auto p : k){
		cout << p << " ";
	}
	return 0;
}