Type: RemoteJudge 1000ms 128MiB

验证子串

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

输入两个字符串,验证其中一个串是否为另一个串的子串。

输入格式

输入两个字符串, 每个字符串占一行,长度不超过200200且不含空格。

输出格式

若第一个串 s1s_1是第二个串 s2s_2的子串,则输出"(s1s_1) is substring of (s2s_2)";
否则,若第二个串 s2s_2是第一个串s1s_1的子串,输出"(s2s_2) is substring of (s1s_1)";
否则,输出"No substring"。

样例

abc
dddncabca
abc is substring of dddncabca

算法组第五次授课

Not Attended
Status
Done
Rule
IOI
Problem
7
Start at
2023-11-26 14:00
End at
2023-11-26 17:00
Duration
3 hour(s)
Host
Partic.
23