练70.3 删除单词后缀
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
Given a word, if it ends with the suffix , , or , delete that suffix (it is guaranteed that the word length after deleting the suffix will not be ); otherwise, make no changes.
Input Format
Input one line containing a word (the word contains no spaces and has maximum length of ).
Output Format
Output the word after processing according to the requirements.
Sample
refererrefer
20251206 B班作业(9 & 10)
- Status
- Done
- Problem
- 7
- Open Since
- 2025-12-7 0:00
- Deadline
- 2025-12-14 23:59
- Extension
- 24 hour(s)