A题 数据范围1024 直接暴力做了... public int string2(int k, String s) { // write code here int[] arr = new int[s.length()]; char[] str = s.toCharArray(); for (int i = 0; i < arr.length; ++i) { arr[i] = str[i] - 'a'; } int res =0; for(...