Skip to content

Instantly share code, notes, and snippets.

@varshneydevansh
Created March 3, 2018 06:43
Show Gist options
  • Save varshneydevansh/90e00cbb2a8fe664d0496ae6e650eaa4 to your computer and use it in GitHub Desktop.
Save varshneydevansh/90e00cbb2a8fe664d0496ae6e650eaa4 to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector <int> A;
for(int i=0; i<10; i++){
int N;
cin>>N;
A.push_back(N);
}
int X,Y;
cin>>X>>Y;
A.insert(A.begin()+1,X);
A.insert(A.begin()+2,Y);
for(int i=0; i<A.size(); i++)cout<<A[i]<<" ";
cout<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment