qwq无语了,样例全对,一看RE
查看原帖
qwq无语了,样例全对,一看RE
1392766
chenjunye0131楼主2024/12/22 10:17
#include<iostream>
using namespace std; 
int n=0,a[1001],b,maxx;
int main(){
    cin>>n;
    for(int i=0;i<n;i++){
    	cin>>b;
    	a[b]++;
    	if(b>maxx){
    		maxx=b;
		}
	}
	for(int i=0;i<=maxx;i++){
		cout<<a[i]<<endl;
	}
    return 0;
}
2024/12/22 10:17
加载中...