#124. 字符串特定子串删除
字符串特定子串删除
Delete Specific Substring
Background
Congcong is currently learning about string processing. He encountered an interesting task that requires modifying strings based on specific rules.
Problem Description
Given a string, if the substring "del" appears starting at index 1 (0-indexed), return a string where that "del" has been deleted. Otherwise, return the string unchanged.
Input Format
Input is given from standard input in the following format.
A string .
Output Format
Output is printed to standard output in the following format.
The processed string.
Sample
adelbc
"abc"
adelHello
"aHello"
adedbc
"adedbc"
Sample Explanation
Sample 1: The input string is "adelbc". The substring starting at index 1 is "del\