Run ID:135701
提交时间:2025-11-08 11:38:56
#include<bits/stdc++.h> using namespace std int main(){ string s; cin>>s; int b=s.length(); if(b-2=='e' && b-1=='r'){ s.erase(b-2,2); }else if(b-2=='l' && b-1=='y'){ s.erase(b-2,2); }else if(b-3=='i' && b-2=='n' && b-1=='g'){ s.erase(b-2;2); } cout<<s; return 0; }