#include struct Point { Point(int _x, int _y) { x = _x; y = _y; } int x; int y; bool operator<(const Point& other) const { return x> N; std::vector points; points.reserve(N); for(int i=0;i> x >> y; points.push_back(Point(x,y)); } std::multiset m; for(int i=0;i s; for(int j=0;j