0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 17:51:58 +00:00
OI-codes/Luogu/P4305/P4305.cpp

23 lines
413 B
C++
Raw Normal View History

#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;
}