import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); //num个例子 for (int k = 0 ; k < num ; k++) { //判断几行案例 int n = sc.nextInt(); ...