#include<stdio.h>
int main()
{
int i, j, a[100] = {0}, n, m;
scanf("%d", &n);
for(i=1;i<=n;i++)
{
scanf("%d", &m);
a[m] = a[m] + 1;
}
for(i=1;i<=n;i++)
{
printf("%d : %d\n", i, a[i]);
}
return 0;
}
int main()
{
int i, j, a[100] = {0}, n, m;
scanf("%d", &n);
for(i=1;i<=n;i++)
{
scanf("%d", &m);
a[m] = a[m] + 1;
}
for(i=1;i<=n;i++)
{
printf("%d : %d\n", i, a[i]);
}
return 0;
}
Comments
Post a Comment