牛客網編程題——循環單詞

判斷循環字符串的簡單方法 若是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
相關文章
相關標籤/搜索