代码如下: import java.util.*; import java.lang.*; public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); List<Set> list = new ArrayList<>(); while(sc.hasNext()){ //获取个数 int num = sc.nextInt(); ...