| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70810 | sh25_wangsj | 整数的个数 | C++ | 通过 | 0 MS | 252 KB | 382 | 2025-10-20 20:04:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,one=0,five=0,ten=0; cin>>a; int y; for(int i=0;i<a;i++){ cin>>y; if(y==1){ one++; } else if(y==5){ five++; } else if(y==10){ ten++; } } cout<<one<<" "<<five<<" "<<ten; return 0; }