#include <iostream> #include <utility> using namespace std; #include <vector> #include<algorithm> #include<unordered_map> bool compare(pair<char, int>&l,pair<char,int>r) { if(l.second==r.second)return l.first<r.first;//若出现次数相同,则比较ASCII玛大小 else...