OJ-Problems-Source/QUSTOJ/1717.c
2016-04-28 08:08:05 +08:00

24 lines
354 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXN 256
int bucket[MAXN];
int main()
{
int t;
scanf("%d",&t);
int tmp;
for(int i=0;i<t;i++)
{
scanf("%d",&tmp);
if(bucket[tmp]==0)
{
++bucket[tmp];
printf("%d ",tmp);
}
}
printf("\n");
return 0;
}