| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71040 | sh25_zhangjiajia | 整数的个数 | C++ | 编译错误 | 0 MS | 0 KB | 455 | 2025-10-24 14:28:59 |
#include <iostream> using namespace std; int main() { int k,a,tot1,tot5,tot10; 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; retrun 0; }