Run ID:77065

提交时间:2024-06-08 11:01:32

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int t[100000]; int shu; for(int i=1;i<=n;i++){ cin>>shu; t[shu]++; } for(int i=0;i<=100000;i++){ if(t[i]!=0){ cout<<i<<" "; } } return 0; }