#635. 在最小数前面插入
在最小数前面插入
No testdata at current.
问题描述
在一个不重复数组的最小数的前面插入一个新的数 y。
输入格式
三行:
第一行有一个整数 n;
第二行有 n 个整数;
第三行有一个整数 y,为要插入的数。
输出格式
更新后的数组。
样例输入
5
7 2 3 4 5
9
样例输出
7 9 2 3 4 5
No testdata at current.
在一个不重复数组的最小数的前面插入一个新的数 y。
三行:
第一行有一个整数 n;
第二行有 n 个整数;
第三行有一个整数 y,为要插入的数。
更新后的数组。
5
7 2 3 4 5
9
7 9 2 3 4 5
By signing up a 西蒙科教 universal account, you can submit code and join discussions in all online judging services provided by us.