Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
143551 | 陈家宝 | 统计各数据个数 | C++ | 通过 | 100 | 13 MS | 640 KB | 210 | 2024-04-16 16:41:21 |
#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; }