Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71045 sh25_zhangjiajia 整数的个数 C++ 编译错误 0 MS 0 KB 494 2025-10-24 14:30:14

Tests(0/0):


#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; retrun 0; }


测评信息: