提交时间:2024-11-08 16:03:11

运行 ID: 55913

#include<iostream> using namespace std; int main() { int n,num,n1=0,n5=0,n10=0; cin>>n; for (int i=0;i<n;i++){ cin>>num; if (num==1){ n1++; } if (num==5){ n5++; } if (num==10){ n10++; } } cout<<n1<<endl<<n5<<endl<<n10<<endl; }