BO. 练70.1  验证子串

    Type: RemoteJudge 1000ms 128MiB

练70.1  验证子串

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

2025年夏令营新人班【查】6

Not Claimed
Status
Done
Problem
86
Open Since
2025-7-12 0:00
Deadline
2025-8-23 23:59
Extension
24 hour(s)