#t191. 删除单词后缀
删除单词后缀
Removing Word Suffixes
Problem Description
Given a word, if it ends with the suffix er, ly, or ing, remove that suffix (it is guaranteed that the word is non-empty after removal); otherwise do nothing.
Input Format
One line containing a word (with no spaces inside; the maximum length of a word is ).
Output Format
Output the word after processing according to the requirements.
Sample Input
referer
Sample Output
refer