Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <deque>
- #include <cstring>
- #include <algorithm>
- #define _USE_MATH_DEFINES
- #include <cmath>
- #include <fstream>
- #include <vector>
- using namespace std;
- int main(){
- ifstream cin ("input.txt");
- int k,m,n,l,o,i;
- vector<int> a;
- cin>>n>>k>>m>>l>>o;
- a.push_back(0);
- for(i=1;i<=n;i++)
- a.push_back(i);
- reverse(a.begin()+k,a.begin()+m+1);
- reverse(a.begin()+l,a.begin()+o+1);
- for(i=1;i<=n;i++)
- cout<<a[i]<<" ";
- cout<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement