Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101970 | Tom0 | 统计各数据个数 | C++ | 解答错误 | 0 | 11 MS | 252 KB | 263 | 2023-09-11 22:24:44 |
#include <iostream> #include <algorithm> #include <map> using namespace std; typedef long long LL; int n, f[25], x; int main() { for (int i = 1; cin >> x; i++) f[x]++; for (int i = 0; i <= 20; i++) cout << f[i] << " "; return 0; }