【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> using namespace std; int main(){ int k,x,s1=0,s5=0,s10=0; cin>>k; for(int i=1;i<=k;++i){ cin>>x; if(x==1)s1++; if(x==5)s5++; if(x==10)s10++; } cout<<s1<<endl; cout<<s5<<endl; cout<<s10<<endl; return 0; }//OK
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:386183 本月:281 上月:799 今日:7 昨日:6 当前在线:1人