int main() { int n = 0; int arr[1001] = {0}; int tmp = 0; scanf("%d",&n); int i = 0; for(i=0;i<n;i++) { scanf("%d ",&tmp); arr[tmp] = tmp; } for(i=0;i<1001;i++) { if(arr[i] != 0) printf("%d ",i); ...