Create 1717.c

This commit is contained in:
KiritoTRw 2016-04-28 08:08:05 +08:00
parent ada7deae0d
commit d1714d263b

23
QUSTOJ/1717.c Normal file
View File

@ -0,0 +1,23 @@
#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;
}