Problem1140--找子串

1140: 找子串

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 8  Solved: 5
[Submit] [Status] [Web Board] [Creator:]

Description

输入文本中含有一些字串对,从第一个字串中找第二个字串。找到就说“Yes”,否则就说“No”。

使用 while (scanf("%s%s", str1, str2)==2)  结构读入两个字符串

Sample Input

abcde a3
defsgbdffgfgbn dff

Sample Output

No
Yes

Source/Category