题解 | #明明的随机数#
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
#include <iostream> #include <set> using namespace std; //使用set就可以 int main() { set<int> st; int N; cin>>N; while(N--){ int temp; cin>>temp; st.insert(temp); } for(auto it = st.begin(); it != st.end(); ++it){ cout<<*it<<endl; } return 0; } // 64 位输出请用 printf("%lld")