#54096: 史上最簡單C++解


s310150@student.cysh.cy.edu.tw (陳駿佑)


#include <bits/stdc++.h>

using namespace std;

int main() {
        int a;
        while (cin >> a) {
            int z[a];
            for (int i = 0; i < a; i++) {
                cin >> z[i];
            }
            sort(z, z + a);
            for (int i = 0; i < a; i++) {
                    cout << z[i] << " ";
            }
            cout << endl;
            }
        }