Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101567 | 江婉儿 | 统计各数据个数 | C++ | 通过 | 100 | 11 MS | 252 KB | 231 | 2023-09-09 10:44:34 |
#include<iostream> #include<cstdio> using namespace std; int main() { int a[25]={0}; int b,s=0; while(cin>>b) { a[b]++; s++; } cout<<s<<endl; for(int c=0;c<=20;c++) { cout<<a[c]<<" "; } return 0; }