Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
70378 sh25_wangtaojie 整数的个数 C++ 通过 0 MS 248 KB 466 2025-10-17 15:30:42

Tests(1/1):


#include <iostream> using namespace std; int main() { int k; cin >> k; int count1 = 0, count5 = 0, count10 = 0; for (int i = 0; i < k; ++i) { int num; cin >> num; if (num == 1) count1++; else if (num == 5) count5++; else if (num == 10) count10++; } cout << count1 << endl; cout << count5 << endl; cout << count10 << endl; return 0; }


测评信息: