#include<iostream> #include<vector> #include<algorithm> using namespace std; struct mydata { int i; int cnt; mydata(int i, int cnt):i(i),cnt(cnt){} }; bool operator<(const mydata& a, const mydata& b) { if (a.cnt < b.cnt) { return true; } else if (a.cnt == b...