直接利用map写会超时......参考大佬意见后,用C++写出这个题解,虽然效率也不是很高,但,emmm,通过了 #include<unordered_map> using namespace std; struct NodeList { int key, val; NodeList* pre; NodeList* next; NodeList() { key = 0; val = 0; pre = nullptr; next = nullptr; } NodeList(int key1, int val1) { val = val1; key = key1; pre = null...