Skip to content

Instantly share code, notes, and snippets.

@varshneydevansh
Created March 3, 2018 06:42
Show Gist options
  • Save varshneydevansh/45b8221bef765478e70aaa2fcc04192d to your computer and use it in GitHub Desktop.
Save varshneydevansh/45b8221bef765478e70aaa2fcc04192d to your computer and use it in GitHub Desktop.
#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