import java.util.*; /** * HJ8 合并表记录 */ public class HJ008 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); TreeMap<Integer, Integer> map = new TreeMap<>(); // 输出结果要求有序! while (sc.hasNextInt()) { int n = sc.nextInt...