Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101517 梁乃元 统计各数据个数 C++ 通过 100 10 MS 252 KB 278 2023-09-09 10:07:13

Tests(10/10):


#include <iostream> #include <cstdio> using namespace std ; int a [21] ; int main ( ) { int n = 0 ; int t ; while ( cin >> t ) { n ++ ; a [t] ++ ; } cout << n << endl ; for ( int i = 0 ; i <= 20 ; i ++ ) { cout << a [i] << ' ' ; } return 0 ; }


测评信息: