牛客网编程题——循环单词

判断循环字符串的简单方法 若是a和b是互为循环字符串 则a in b+bpython n = int(input()) res = [] for _ in range(n): res.append(input()) all_word = set() suma = 0 def check(old,this): if old in this+this and len(old)==len
相关文章
相关标签/搜索