c#include <bits/stdc++.h> using namespace std; bool cmp(pair<int, int> A, pair<int, int> B){ if(A.first == B.first){ return A.
#include <bits/stdc++.h> using namespace std; bool cmp(pair<int, int> A, pair<int, int> B){ if(A.first == B.first){ return A.