#include <iostream> using namespace std; #include <unordered_map> int main() { string str; char s; getline(cin,str); cin>>s; s=tolower(s); //记得统一都要小写 for(char &c:str){ c=tolower(c); } unordered_map<char,int>mp; for(char ch:str){...