#include <iostream>
#include<iomanip>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int n,m;
while (cin >> n>>m)
{
if (n == 0 && m == 0)
return 0;
vector<int>a;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
a.push_back(x);
}
a.push_back(m);
sort(a.begin(), a.end());
for (int i =0; i < n ; i++)
{
cout << a[i] << " ";
}
cout << a[n] << endl;
}
return 0;
}
小熊崽纸的杭电2019
最新推荐文章于 2020-07-30 15:08:08 发布