文件目录

#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int a[100] = {};
    for (int i = 1; i <= n; i++)
        cin >> a[i];
    for (int i = 1; i < n; i++)
        for (int j = 1; j < n; j++)
            if (a[j] < a[j + 1])
                swap(a[j], a[j + 1]);
    for (int i = 1; i <= n; i++)
        cout << a[i] << "\n";
    return 0;
}