难的是理解题目的意思啊,第二道题有简单的解法吗?没来得及,罗列情况弄好久,最后没时间 import java.util.LinkedList; import java.util.Scanner; public class 卡拉卡斯卡 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // while(sc.hasNext()){ int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[m...