import java.util.*; /** 滑动窗口 本题就是寻找全换成a或者全换成b哪个最长 */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); String s = sc.next(); System.out.println(Math.max(fun(new HashMap<>(),'a',s,m),fun(new HashMap<&...