mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-24 14:28:48 +00:00
23 lines
413 B
C++
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;
|
|
}
|