| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70811 | sh25_wangsj | 整数的个数 | C++ | 运行超时 | 4000 MS | 236 KB | 384 | 2025-10-20 20:05:28 |
#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=i-1){ cin>>y; if(y==1){ one++; } else if(y==5){ five++; } else if(y==10){ ten++; } } cout<<one<<" "<<five<<" "<<ten; return 0; }