Created
March 3, 2018 06:42
-
-
Save varshneydevansh/45b8221bef765478e70aaa2fcc04192d 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() | |
{ | |
int N; | |
vector <int> A; | |
for(int i=1; i<=10; i++){ | |
cin>>N; | |
A.push_back(N); | |
} | |
/*First 5 elements means L=0 and R=4*/ | |
A.erase(A.begin()+0,A.begin()+4+1); | |
//^--Our formula ^-L ^-R | |
for(int i=0; i<A.size(); i++)cout<<A[i]<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment