提交时间:2024-11-15 19:30:54
运行 ID: 56763
#include<bits/stdc++.h> using namespace std; int main(){ int k; cin>>k; int shu[k],amount1=0,amount5=0,amount10=0; for(int i=0;i<k;i++){ cin>>shu[k]; if(shu[k]==1){ amount1+=1; } else if(shu[k]==5){ amount5+=1; } else if(shu[k]==10){ amount10+=1; } } cout<<amount1<<endl<<amount5<<endl<<amount10<<endl; return 0; }