如果直接使用map 容器 ,在key 为字符串 最后一个会超时。
使用楼上的思想,将key 改为数字 可以A了。
map<int,vector<int> >;