mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1717.c
This commit is contained in:
parent
ada7deae0d
commit
d1714d263b
23
QUSTOJ/1717.c
Normal file
23
QUSTOJ/1717.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user