include <bits/stdc++.h> using namespace std;bool cmp(pair<int, char> a , pair<int, char> b){ //规定sort的排序规则; if(a.first==b.first){ return a.second>b.second; } else{ return a.first<b.first; } }int main(){ vector<pair<int,c...