Create 1717.c

pull/6/head
KiritoTRw 2016-04-28 08:08:05 +08:00
parent ada7deae0d
commit d1714d263b
1 changed files with 23 additions and 0 deletions

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;
}