#include<bits/stdc++.h> using namespace std; //将key转为大写 void to_upper(string& str){ for(int i = 0; i < str.size(); i++){ str[i] = toupper(str[i]); } } //统计key各个字符的频率 map<char, int> count_freq(string& str){ map<char, int> m; for(int i = 0; i <...