#124. 字符串特定子串删除

    ID: 124 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-1gesp3字符串条件结构

字符串特定子串删除

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 SS.

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\