Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
70522 sh25_wuyy 整数的个数 C++ 编译错误 0 MS 0 KB 399 2025-10-18 08:08:16

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ int k; cin<<k; int c1=0,c5=0,c10=0; for (int i = 0; i < k; ++i) { int num; cin >> num; if (num == 1) c1++; else if (num == 5) c5++; else if (num == 10) c10++; } cout << c1 << endl; cout << c5 << endl; cout << c10 << endl; return 0 }


测评信息: