map的高级复杂用法。将map值的部分使用struct来表示。因为题目要求需要按照下标顺序从小到大输出。那么在struct中添加一个judge用于判断是否已经判别,这样在对字符串从index = 0开始,就满足了题目要求。 const int MAXN = 1001; struct Point{ int num; vector<int>AA; int judge = 0; }; int main(){ string A; map<char,Point>mapp; cin>>A; for(int i=...