import java.util.*; public class Main { // 声明变量 static int n, sz, m, k, t; static Set<Integer>[] table; static boolean[] infected; private static void dealWithInput() { Scanner sc = new Scanner(System.in); sz = (n = sc.nextInt()) + 1; // 使用节点的逻辑索引 ...