利用两个map映射来找关系 #include<iostream> #include<map> using namespace std; map<char, int> inputTime = { {'a',1},{'b',2} ,{'c',3}, {'d',1},{'e',2} ,{'f',3}, {'g',1},{'h',2} ,{'i',3}, {'j',1},{'k',2} ,{'l',3}, {'m',1},{'n',2} ,{'o',3}, {'p',1},{'q',2} ,{'r',3},{'s',4}, {'t',1...