def check(d): v = [0] * 100 for i in range(d): v[a[i]] += 1 i = 0 while __________: tmp = 0 for j in range(m): if v[j] > 0: tmp += 1 if tmp == m: return i elif i + d < n: v[a[i]] -= 1 __________ i += 1 return -1 m = int(input()) cd = input() dict_cd = {} i = 0 for e in list(cd): if e not in dict_cd: dict_cd[e] = i i += 1 n = len(cd) a = [dict_cd[i] for i in cd] ans = -1 zuo = 0 for i in range(m, n + 1): __________ if t != -1: ans = i zuo = t break if ans == -1: print("没有") else: print("最少花费", ans, "元, ", "区间为", zuo + 1, ",", ans + zuo)