Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101795 梁晨熙 统计各数据个数 C++ 通过 100 11 MS 652 KB 231 2023-09-11 13:22:44

Tests(10/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-1<<endl; for(int i=0;i<21;i++){ cout<<b[i]<<" "; } return 0; }


测评信息: