Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
137133 杨博煊 统计各数据个数 C++ Accepted 100 11 MS 252 KB 218 2024-03-09 17:35:51

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: