Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101666 柯昊阳 统计各数据个数 C++ 通过 100 10 MS 248 KB 288 2023-09-09 15:06:37

Tests(10/10):


#include <bits/stdc++.h> using namespace std; int arr[25]; int main(){ int n; int cnt = 0; while(cin>>n){ arr[n]++; cnt++; } cout<<cnt<<endl; for(int i = 0;i<=20;i++){ cout<<arr[i]<<" "; } cout<<endl; return 0; }


测评信息: