求解

聪智  •  1年前


给个输入也行,谢谢!


评论:

include <bits/stdc++.h>

using namespace std; int b[20+1]; int i,temp,sum; int main() {

while (scanf("%d",&temp)==1){
    b[temp]++;
    ++sum;
}
cout<<sum<<endl;
for (i=0;i<=20; i++)
printf("%d ",b[i]);
return 0;

}


送给你小行星  •  9个月前