#define _CRT_SECURE_NO_WARNINGS标签:sort,std,includeusing,int,使用,c++,printf,main From: https://blog.51cto.com/u_15841666/6086957
#include<stdio.h>
using namespace std;
#include <algorithm>
int a[100010], n;
int main()
{
scanf("%d", &n);
for (int i = 0; i <n; i++) scanf("%d", &a[i]);
sort(a , a + n);
printf("%d ", a[0]);
for (int i = 1; i < n; i++) {
if (a[i] != a[i - 1]) printf("%d ", a[i]);
}
return 0;
}