#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,n=0,m=0,l=0;
scanf("%d",&a);
for(int i=1;i<=a;i++)
{
scanf("%d",&b);
if(b==1)m++;
if(b==5)n++;
if(b==10)l++;
}
cout<<m<<"n"<<n<<"n"<<l;
return 0;
}
转载于:https://www.cnblogs.com/5t2y0/p/9240628.html
最后
以上就是超帅烧鹅最近收集整理的关于循环结构 整数的个数的全部内容,更多相关循环结构内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复