Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
116889 陈家宝 统计各数据个数 C++ 通过 100 11 MS 644 KB 214 2023-12-20 13:40:50

Tests(10/10):


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


测评信息: