10 条题解
-
0
#include <bits/stdc++.h> using namespace std; int main() { setbuf(stdout, NULL); set<int> s; int n; cin >> n; int val; for (int i = 0; i < n; ++i) { cin >> val; s.insert(val); } cout << s.size() << endl; for (auto item: s) { cout << item << " "; } return 0; }
直接STL解决一切问题?
信息
- ID
- 734
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 4
- 标签
- 递交数
- 666
- 已通过
- 313
- 上传者