栅栏涂色的那个输入输出咋写的?为啥我写的就输出一行结果?我明明传了3行数据,第一行是行数,为啥只输出第一行结果?哪位大佬帮我看一下: public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         int num = Integer.parseInt(sc.nextLine());         for(int i=0;i<num;i++){             String[] str = sc.nextLine().split(" ");             int n = Integer.parseInt(str[0]);             int k = Integer.parseInt(str[1]);             int res = method(n,k);  //求栅栏方法             System.out.println(res);         } } 2 2 3 3 3 为啥只输出一行结果,调试的时候显示3 3这行没有数据,根本没读到3 3,到底为啥呀