**给出的数在 32 位有符号整数范围内**
by kevinZ99 @ 2024-07-26 14:08:35
60分,剩下自己做。
```cpp
#include<bits/stdc++.h>
using namespace std;
int t,n,x,v,s[50001],a[1000000];
int main(){
cin>>t;
for(int i=1;i<=t;i++){
cin>>n;
for(int j=1;j<=n;j++){
cin>>s[j];
a[s[j]]=0;
}
for(int j=1;j<=n;j++){
if(a[s[j]]==0){
cout<<s[j]<<' ';
a[s[j]]=2;
}
}
cout<<endl;
}
return 0;
}
//㊣
```
by cyx20131003 @ 2024-07-26 14:16:48
@[jjy0109](/user/999464) 数据很大的,桶排用不了,可以去题解那里看看,换个方法。
by DreamInk @ 2024-07-26 14:22:04
@[DreamInk](/user/765573) 好的,我看一下
by jjy0109 @ 2024-07-26 14:33:23