include iostream using namespace std int main int int arr 1000 for int

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
using namespace std;
int main() {
int n;
int arr[1000];
for (int i = 0; i < 1000; i++) {
arr[i] = 0;
}
cin >> n;
for (int i = 0; i < n; i++) {
int value;
cin >> value;
arr[value]++;
}
for (int i = 0; i < 1000; i++) {
if (arr[i] == 1)
cout << i << ' ';
}
cout << endl;
getchar();
getchar();
return 0;
}