Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101791 梁晨熙 统计各数据个数 C++ 解答错误 0 10 MS 644 KB 229 2023-09-11 13:22:32

Tests(0/10):


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


测评信息: