#include <iostream> #include <vector> #include <algorithm> #include <unordered_map> using namespace std; struct node { int index, ct; bool operator < (const node & a) const { // if(ct == a.ct) return index < a.index; 好奇这样直接排序为啥不是正确答案 return...