#include <iostream>
#include <vector>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
#include <vector>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<int> arr;
int n, num, pos, val;
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> num;
arr.push_back(num);
}
cin >> pos;
cin >> val;
arr.insert(arr.begin() + pos - 1, val);
vector<int> ::iterator it;
for (it = arr.begin(); it != arr.end(); it++)
{
cout << *it << endl;
}
return 0;}
0 回复
0 转发
0 喜欢
4 阅读



