Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
137131 | 刘子隽bylz | 统计各数据个数 | C++ | 通过 | 100 | 10 MS | 256 KB | 218 | 2024-03-09 17:35:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,sum=0,a[100000]; while(cin>>n){ a[n]++; sum++; } cout<<sum<<endl; for(i=0;i<=20;i++) cout<<a[i]<<" "; return 0; }