eolymp
bolt
Try our new interface for solving problems
Problems

Delete a fragment

published at 4/13/24, 9:13:18 pm

include <bits/stdc++.h>

using namespace std; int main(){ string a; int n,m,b; getline(cin,a); cin>>n>>m; for(int i = a.length()-1;i>= 0;i--){ a.erase(n,m-n+1); cout<<a; break; }

}