为什么我输出和预期输出一样,但是不通过啊😥import java.nio.Buffer;import java.util.*;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String temp; for (int i = 0; i != n; i++) { temp = sc.next(); StringBuffer buffer = new StringBuffer(temp); if (buffer.charAt(0) > '2' || (buffer.charAt(0) == '2' && temp.charAt(1) >= '5')) { buffer.setCharAt(0, '0'); } if (buffer.charAt(3) > '6' || (buffer.charAt(3) == '6' && temp.charAt(4) != '0')) { buffer.setCharAt(3, '0'); } if (buffer.charAt(6) > '6' || (buffer.charAt(6) == '6' && temp.charAt(7) != '0')) { buffer.setCharAt(6, '0'); } String s = buffer.toString(); System.out.println(s); } }}