提交时间:2025-10-24 14:34:59

运行 ID: 71062

#include <iostream> using namespace std; int main() { int k,a; int tot1 = 0; int tot5 =0; int tot10=0; cin >> k; for(int i = 1;i<=k;i++) { cin >>a; if(a==1) { tot1++; } if(a==5) { tot5++; } if(a==10) { tot10++; } } cout << tot1 << endl; cout << tot5 << endl; cout << tot10 << endl; return 0; }