(记录一下)STL的map
底层实现一般是红黑树,会自动按照key排序,按照value排序好像也没有更好的方法了,只能将map
转成vector<pair>
再进行排序了~
#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
using namespace std;
vector<pair
(记录一下)STL的map
底层实现一般是红黑树,会自动按照key排序,按照value排序好像也没有更好的方法了,只能将map
转成vector<pair>
再进行排序了~
#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
using namespace std;
vector<pair