题解 | 明明的随机数 最简单写法
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
#include <bits/stdc++.h> using namespace std; int main() { set<int> ste; int a; cin>>a; while (cin >> a) // 注意 while 处理多个 case ste.insert(a); for(auto a:ste) cout<<a<<endl; } // 64 位输出请用 printf("%lld")