Files
python/TangDou/XiTi/1369.cpp

23 lines
400 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int a[20000] = {0};
int main() {
int n;
cin >> n;
unordered_map<int, int> _map;
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
for (int i = 0; i < n; ++i) {
if (_map.count(a[i]) == 0) {
cout << a[i] << " ";
}
_map[a[i]]++;
}
cout << endl;
return 0;
}