#include<iostream> #include<cstdio> #include<algorithm> #include<set> using namespace std; int main(void) { set<int>box; int i , x , n ; cin >> n; for(i = 0 ; i < n ; i++) { cin >> x; box.insert(x); } cout << box.size() ; for(set<int >::iterator i = box.begin() ; i !=box.end(); i++) cout << ' ' << *i; return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:544 |
A+B for Input-Output Practice (IV) (C++代码)浏览:676 |
数组输出 (C语言代码)错误???浏览:558 |
输出正反三角形 (C语言代码)格式错误!!!浏览:1140 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:522 |
C语言程序设计教程(第三版)课后习题9.3 (C语言代码)浏览:2090 |
1024题解浏览:806 |
前10名 (C语言代码)浏览:725 |
输出九九乘法表 (C语言代码)浏览:1048 |
C语言训练-8除不尽的数 (C语言代码)浏览:1396 |