import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int zs = sc.nextInt();//将要输入的键值对的个数 TreeMap<Integer, I...