HJ3 明明的随机数 | 杂乱无章的初级程序员的题解
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
#include <iostream> #include <set> using namespace std; int main(int, char **) { uint16_t n; cin >> n; set<uint16_t> s; for (auto i = n; n > 0; --n) { uint16_t t; cin >> t; s.insert(t); } for (auto i : s) { cout << i << endl; } }