修改:快输是
```cpp
void wr(int x, char ch='\n') ;
```
by 超级玛丽王子 @ 2022-05-08 17:15:38
额
by Nuclear_flashlight @ 2022-05-08 17:35:26
@[超级玛丽王子](/user/372299) 发一下 read wr?
by rui_er @ 2022-05-08 17:44:24
@[rui_er](/user/122461)
```cpp
#include <bits/stdc++.h>
#define pii pair<int, int>
using namespace std;
inline int read(){
int f=1;
char ch=getchar();
while(ch<'0'||ch>'9') {
if(ch=='-') f=-1;
ch=getchar();
}
int x=0;
while(ch>='0'&&ch<='9') x=(x*10)+(ch^48),ch=getchar();
return x*f;
}
inline void write(int x) {
if(x>9) write(x/10);
putchar(x%10+'0');
}
inline void wr(int x, char ch='\n') {
if(x<0) putchar('-'),x=-x;
write(x);
putchar(ch);
}
int T,n,a;
set<int> S;
int main(void) {
T=read();
while(T--) {
n=read();
S.clear();
for(int i=1;i<=n;++i) {
a=read();
if(S.find(a)==S.end()) {
S.insert(a);
wr(a, ' ');
}
}
putchar('\n');
}
return 0;
}
```
by 超级玛丽王子 @ 2022-05-09 07:57:04