0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 06:38:48 +00:00
OI-codes/Luogu/P4305/P4305.cpp

23 lines
413 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
int n, x;
unordered_map<int, bool> m;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &x);
if (!m[x]) {
m[x] = true;
printf("%d ", x);
}
}
printf("\n");
}
return 0;
}