mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
24 lines
354 B
C
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;
|
|
}
|