题解 | 明明的随机数
明明的随机数
https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N, n;
vector<int> vec(501, 0);
cin>>N;
while(N--){
cin>>n;
vec[n] = 1;
}
for(int i = 0; i < vec.size(); i++){
if(vec[i])
cout<<i<<endl;
}
}
// 64 位输出请用 printf("%lld")
