我怀疑是你自己快写写挂了
by E1_de5truct0r @ 2022-12-29 16:19:55
我怀疑是你自己快写写挂了
by 可爱妹妹交流群Official @ 2022-12-29 16:25:46
我怀疑是你自己快写写挂了
by dxrS @ 2022-12-29 16:29:35
我怀疑是你自己快写写挂了
by w9095 @ 2022-12-29 16:57:28
@[El_destructor](/user/195198) 不可能吧,这个快写跟了我半年了。
60:
```cpp
#include<bits/stdc++.h>
using namespace std;
int read(){
int x=0,f=1;
char ch=getchar();
while(ch<'0' || ch>'9'){ if(ch=='-') f=-1;ch=getchar();}
while(ch>='0' && ch<='9'){x=(x<<3)+(x<<1)+(ch^48);ch=getchar();}
return x*f;
}
inline void put(int x){
if(x<0){putchar('-');x=-x;}
if(x>=10) put(x/10);
putchar(x%10+'0');
}
unordered_map<int,bool>m;
int main()
{
int T;
cin>>T;
while(T--){
m.clear();
int n=read(),w;
for(int i=1;i<=n;i++){
w=read();
if(m[w]==0){
put(w);
putchar(' ');
m[w]=1;
}
}
putchar('\n');
}
return 0;
}
```
by shoot_down @ 2022-12-29 17:38:13