Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
137106 黄本瀚 统计各数据个数 C++ 通过 100 10 MS 240 KB 196 2024-03-09 17:33:56

Tests(10/10):


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


测评信息: