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.

题目描述

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

输入格式

两行,每行一个字符串。

输出格式

若第一个串 s1s_1 是第二个串 s2s_2 的子串,则输出(s1) is substring of (s2)

否则,若第二个串 s2s_2 是第一个串 s1s_1 的子串,输出(s2) is substring of (s1)

否则,输出 No substring

abc
dddncabca
abc is substring of dddncabca
aaa
bbb
No substring

提示

对于 100%100 \% 的数据,字符串长度在 2020 以内。

初一从0开始学C++(字符串)

Not Claimed
Status
Done
Problem
7
Open Since
2024-3-18 0:00
Deadline
2024-6-30 23:59
Extension
24 hour(s)