这道题想了好久都没想出来,求助大佬!
  • 板块题目总版
  • 楼主ilovebeluga
  • 当前回复9
  • 已保存回复9
  • 发布时间2023/4/21 19:37
  • 上次更新2023/10/23 17:53:48
查看原帖
这道题想了好久都没想出来,求助大佬!
906444
ilovebeluga楼主2023/4/21 19:37

题目背景

小明在写英语作文,但是他对英文中的 the 这个单词看的非常不顺眼,觉得这个单词没啥用,所以他想把他之前写过的一篇英语作文中所有的 the 给去掉,你可以帮帮他吗?

题目描述

输入一行字符串,是小明写的一篇英语作文,需要你把作文中所有的 the 这个内容去掉,然后输出去掉 the 后的作文。

注意:可能出现 tthehe 的情况,那删掉 the 之后文章中又出现了 the 也需要被删掉

输入格式

一行字符串。表示小明原来的英语作文。

输出格式

一行字符串。表示去掉了所有 the 后的英语作文。

输入输出样例

输入 #1

My mother comes from the China. She is a lawer. She is the most talented lawer in her law firm. 输出 #1

My mor comes from China. She is a lawer. She is most talented lawer in her law firm.

输入 #2

Let's go to the theater.

输出 #2

Let's go to ater.

说明/提示 只需去掉 the,不考虑其他大写字母的情况 无论 the 是一个单词 或 被包含在其他单词中,都需要去掉,其他字符不变

2023/4/21 19:37
加载中...