c#include <bits/stdc++.h> using namespace std; bool compare(pair<int, int> a, pair<int, int> b){ if(a.second == b.second){ return a.
#include <bits/stdc++.h> using namespace std; bool compare(pair<int, int> a, pair<int, int> b){ if(a.second == b.second){ return a.