Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
137240 龚梓嘉 统计各数据个数 C++ Accepted 100 13 MS 240 KB 217 2024-03-09 17:47:26

Tests(10/10):


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


Judgement Protocol: