#include <stdio.h>
int main()
{int i,j,n,sum=0,x[1001]={0};
scanf("%d",&n);
for (i=1;i<=n;i++)
{scanf("%d",&j);
if (x[j]==0) sum++;
x[j]=1;
}
printf("%d\n",sum);
for (i=1;i<=1000;i++)
if (x[i]==1) printf("%d ",i);
return 0;
}        

  

相关文章:

  • 2022-01-14
  • 2021-09-18
  • 2021-06-26
  • 2021-06-17
  • 2021-06-19
  • 2022-01-19
  • 2021-08-05
  • 2021-06-26
猜你喜欢
  • 2021-09-29
  • 2021-06-01
  • 2021-06-06
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案