Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
137129 杰苏尔纳迪尔 统计各数据个数 C++ 通过 100 8 MS 248 KB 234 2024-03-09 17:35:39

Tests(10/10):


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


测评信息: