Run ID:133716

提交时间:2025-10-20 18:31:39

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ cin >> s; if (s.find("er", s.size()-2) != -1) s = s.substr(0, s.size()-2); else if (s.find("ly", s.size()-2) != -1) s = s.substr(0, s.size()-2); else if (s.find("ing", s.size()-3) != -1) s = s.substr(0, s.size()-3); cout << s << endl; return 0; }