oj1.7字符串移位包含问题

发布时间:2026/7/30 4:38:50
oj1.7字符串移位包含问题 #字符串移位包含问题s1,s2 input().split() #输入s1,s2s3 s1 s1 #两个s1拼接在一起就包含了左右所有移位后的字符串s4 s2 s2 #同上#开始判断包含问题,#长短和包含if len(s1) len(s2) and s2 in s3:print(‘true’)elif len(s2) len(s1) and s1 in s4:print(‘true’)else:print(‘false’)