#10050. 【字符串删除】字符串 erase 删除

    ID: 10050 传统题 文件IO:erase 1000ms 256MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>字符串C++T2字符串修改

【字符串删除】字符串 erase 删除

题目描述

给定字符串 ss,删除从下标 pospos 开始的 lenlen 个字符,输出删除后的字符串。

字符串下标从 00 开始。

输入格式

第一行包含一个字符串 ss

第二行包含两个整数 posposlenlen

输出格式

输出删除后的字符串。

样例

hello world
5 1
helloworld

样例解释

从下标 55 开始删除 11 个字符,即删除空格。

数据范围

  • 1s10001 \le |s| \le 1000
  • 0poss0 \le pos \le |s|
  • 0lenspos0 \le len \le |s|-pos
  • 字符串只包含可打印 ASCII 字符。