#include<stdio.h>
int main()
{int arr[100];
int n,i,j;
scanf("%d",&n);
for(i=0;i<n;i++)
{scanf("%d",&arr[i]);
}
if(n==0)printf(" ");
else{
printf("%d ",arr[0]);
for(i=1;i<n;i++)
{
for(j=i-1;j>=0;j--)
{if(arr[i]==arr[j])
break;
}
if(j<0)
printf("%d ",arr[i]);
}
}
return 0;
}
标签:arr,11.8,int,scanf,printf,include From: https://blog.51cto.com/u_15758636/5834726