Problem A: 判断子串

Problem A: 判断子串

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

Description

编写函数bool instr(const char *s1const char *s2),判断字符串s2是否为s1的子串,并在main函数当中验证该函数。

Input

两行,分别输入两个字符串s1和s2。

Output

如果s2是s1的子串,输出字符串YES,否则输出字符串NO。

Sample Input

abcd
abc

Sample Output

YES
[Submit][Status]