你干嘛~~哈哈~~诶呦~~你好烦啊~~

刹那(。・∀・)ノ゙  •  2年前


include <stdio.h>

int main () {

int n,k,c=0;
scanf("%d",&n);
int a[1001]={0};
for(int i=1;i<=n;i++)
{
	scanf("%d",&k);
	if(a[k]==0)
	{
		c++;
	}
	a[k]++;
}
printf("%d\n",c);
for(int i=1;i<=1000;i++)
{
	if(a[i])
	{
		printf("%d ",i);
	}
}
return 0;

}


评论:

..............000..................00000000000000000...............0000000000000000........... ................000..................00..0..000..0..00..........................000........... ..................000..................00..00.000.00..00...........00000000000000000000000000. ...........00.......000......00..........00000000000000000......................000........... ............000.......000......000................000.............................000......... .............0000.......000......0000...............000.............................000....... ................000...00..000......000........0000000000000000000.................00..000..... .........................000000.........................000..........................000000... .............................0000...............00000000000000000000000.................00000. ................................00...............000...000...000...0000....................00


许熠谦  •  2年前

..............000..................00000000000000000...............0000000000000000........... ................000..................00..0..000..0..00..........................000........... ..................000..................00..00.000.00..00...........00000000000000000000000000. ...........00.......000......00..........00000000000000000......................000........... ............000.......000......000................000.............................000......... .............0000.......000......0000...............000.............................000....... ................000...00..000......000........0000000000000000000.................00..000..... .........................000000.........................000..........................000000... .............................0000...............00000000000000000000000.................00000. ................................00...............000...000...000...0000....................00


许熠谦  •  2年前

请先登录,才能进行评论