public class Baidu { public static void main(String[] args) { //第三题 Scanner sc = new Scanner(System.in); int t = sc.nextInt(); sc.nextLine(); for (int i = 0; i < t; i++) { Map<Integer, Integer> map = new HashMap<>(); ...