?大概就是排序。
解&代码
sort单核。
#include<cstdio>
#include<algorithm>
#include<iostream>
using namespace std;
long long a[502];
int n;
int main(){
freopen("score.in","r",stdin);
freopen("score.out","w",stdout);
scanf("%d", &n);
for(int i = 1; i <= n; ++i)
scanf("%lld", &a[i]);
sort(a+1, a+1+n);
for(int i = n; i >= 1; --i)
printf("%lld\n", a[i]);
fclose(stdin);
fclose(stdout);
}