/*
Namec: base_4.c
Purpose: 整数的个数
Author: syt
Date: 2016_01_23
*/
#include<stdio.h>
int main()
{
int k, i;
scanf("%d", &k);
int p[k];
int num_one = 0, num_five = 0, num_ten = 0;
for(i = 0; i < k; i++)
{
scanf("%d", &p[i]);
if(p[i] == 1){
num_one = num_one + 1;
}else if(p[i] == 5){
num_five = num_five + 1;
}else if(p[i] == 10){
num_ten = num_ten + 1;
}
}
printf("%d\n%d\n%d\n", num_one, num_five, num_ten);
return 0;
}
Namec: base_4.c
Purpose: 整数的个数
Author: syt
Date: 2016_01_23
*/
#include<stdio.h>
int main()
{
int k, i;
scanf("%d", &k);
int p[k];
int num_one = 0, num_five = 0, num_ten = 0;
for(i = 0; i < k; i++)
{
scanf("%d", &p[i]);
if(p[i] == 1){
num_one = num_one + 1;
}else if(p[i] == 5){
num_five = num_five + 1;
}else if(p[i] == 10){
num_ten = num_ten + 1;
}
}
printf("%d\n%d\n%d\n", num_one, num_five, num_ten);
return 0;
}