#include #include #include #include #include #include using namespace std; std::pair norm (int xx, int yy) { std::pair res; if (xx == 0) { res.first=xx; res.second=abs(yy); } else if (yy == 0) { res.first=abs(xx); res.second=yy; } else if (xx < 0) { res.first = -1 * xx; res.second = -1 * yy; } else { res.first = xx; res.second = yy; } return res; } int main() { int n; int x, y; while (cin >> n) { vector > star; star.reserve(n); for (int i=0; i> x >> y; star.emplace_back(x,y); } //cout << n << " " << star.size() << endl; //unordered_map, vector > vec; map, vector > vec; pair v; for (int i=0; i