Created
March 3, 2018 06:43
-
-
Save varshneydevansh/90e00cbb2a8fe664d0496ae6e650eaa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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