P1012求助!
查看原帖
P1012求助!
1065643
huang_yi_hang2014楼主2024/2/27 22:00

https://www.luogu.com.cn/record/148575641

#include<iostream>
using namespace std;
int main(){
	int n,a[1000000001],t;
	cin >> n;
	for(int i=1;i<=n;i++){
		cin >> t;
		a[t]++;
	}
	for(int i=100000000;i>=1;i--){
		for(int j=1;j<=a[i];j++){
			cout << i;
		}	
	}
	return 0;
}
2024/2/27 22:00
加载中...