当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

5707:Combine String

题目描述
Given three strings $a$, $b$ and $c$, your mission is to check whether $c$ is the combine string of $a$ and $b$.
A string $c$ is said to be the combine string of $a$ and $b$ if and only if $c$ can be broken into two subsequences, when you read them as a string, one equals to $a$, and the other equals to $b$.
For example, ``adebcf'' is a combine string of ``abc'' and ``def''.
输入解释
Input file contains several test cases (no more than 20). Process to the end of file.
Each test case contains three strings $a$, $b$ and $c$ (the length of each string is between 1 and 2000).
输出解释
For each test case, print ``Yes'', if $c$ is a combine string of $a$ and $b$, otherwise print ``No''.
输入样例
abc
def
adebcf
abc
def
abecdf
输出样例
Yes
No
来自杭电HDUOJ的附加信息
Recommend liuyiding

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-5707

最后修改于 2020-10-25T23:24:58+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 65535/65535K(Java/Others)