您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 年前
123456
  1. text = open(0).read()
  2. for N in [4, 14]:
  3. for i in range(len(text)):
  4. if len(set(text[i:i + N])) == N:
  5. break
  6. print(i + N)