mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
32 lines
522 B
C++
32 lines
522 B
C++
#include <bits/stdc++.h>
|
|
#define int long long
|
|
#define endl "\n"
|
|
#define IMX LONG_LONG_MAX
|
|
#define IMN LONG_LONG_MIN
|
|
#define debug$ if(dev)
|
|
using namespace std;
|
|
|
|
/* toothless. #17 */
|
|
|
|
const int N = 1e7 + 10;
|
|
const int M = 2e3 + 5;
|
|
const bool dev = false;
|
|
|
|
int n;
|
|
int a[N];
|
|
int m;
|
|
|
|
signed main()
|
|
{
|
|
cin >> n;
|
|
for (int i = 1; i <= n; i++) {
|
|
cin >> a[i];
|
|
}
|
|
cin >> m;
|
|
a[n + 1] = m;
|
|
sort(a + 1, a + n + 2);
|
|
for (int i = 1; i <= n + 1; i++) {
|
|
cout << a[i] << " ";
|
|
}
|
|
return 0;
|
|
} |