#include #include #include #include #include #include #include #include #include #include using namespace std; #ifdef _WIN32 #include #endif bool comp(const vector &alpha, const vector &beta){ if (alpha[0] == beta[0]) return alpha[1] < beta[1]; else return alpha[0] > beta[0]; } int main() { vector> v(3, vector (2)); for (int i = 0; i < 3; i++){ cin >> v[i][0] >> v[i][1]; } sort(v.begin(), v.end(), comp); for (auto x : v){ cout << x[0] << " " << x[1] << endl; } }