Run ID:135712
提交时间:2025-11-08 11:51:58
#include<bits/stdc++.h> using namespace std; int sum[126]; int main(){ string s; cin>>s; //int a=s.length()-1; int b=s.length();//-2; if(s[b-2]=='e'&&s[b-1]=='r'){ s.erase(b-2,2); } if(s[b-2]=='l'&&s[b-1]=='y'){ s.erase(b-2,2); } if(s[b-3]=='i'&&s[b-2]=='n'&&s[b-1]=='g'){ s.erase(b-3,3); } cout<<s; } //}