#include<stdio.h>
int main()
{
int N, X, i, anik = 0, rob = 0;
scanf("%d", &N);
for(i=1;i<=N;i++)
{
scanf("%d", &X);
if(X>=10 && X<=20)
{
anik++;
}
else
{
rob++;
}
}
printf("%d in\n", anik);
printf("%d out\n",rob);
return 0;
}
int main()
{
int N, X, i, anik = 0, rob = 0;
scanf("%d", &N);
for(i=1;i<=N;i++)
{
scanf("%d", &X);
if(X>=10 && X<=20)
{
anik++;
}
else
{
rob++;
}
}
printf("%d in\n", anik);
printf("%d out\n",rob);
return 0;
}
Comments
Post a Comment