Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101971 Tom0 统计各数据个数 C++ 通过 100 11 MS 248 KB 287 2023-09-11 22:26:26

Tests(10/10):


#include <iostream> #include <algorithm> #include <map> using namespace std; typedef long long LL; int n, f[25], x; int main() { for (n = 1; cin >> x; n++) f[x]++; cout << n - 1 << endl; for (int i = 0; i <= 20; i++) cout << f[i] << " "; return 0; }


测评信息: