第一题,HashSet import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main1 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) {...