荣耀第一题,通过率只有60%,这是为什么?错在哪了?求解public class Main1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); String srr = sc.nextLine(); String[] arr = new String[n]; for (int i = 0; i arr[i] = srr.substring(i*9,i*9+9); } System.out.println(Arrays.toString(arr)); StringBuilder sb = new StringBuilder(); for (int i = 0; i String s = arr[i]; if(s.charAt(0) == '0'){ sb.append(s.substring(1,9)); arr[i] = sb.reverse().toString(); }else{ arr[i] = s.substring(1,9); } } for (int i = 0; i System.out.printf(arr[i]+" "); } }}