题解

罗嘉为  •  3个月前


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] << " ";
}

}


评论: