Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
137133 杨博煊 统计各数据个数 C++ 通过 100 11 MS 252 KB 218 2024-03-09 17:35:51

Tests(10/10):


#include <bits/stdc++.h> using namespace std; int a[110]; int main(){ int x, cnt = 0; while(cin >> x){ cnt++; a[x]++; } cout << cnt << endl; for(int i = 0; i <= 20; i++){ cout << a[i] << " "; } }


测评信息: