#include #include #include using namespace std; struct koor { int x; int y; }; vector vec; bool mn(int n) { koor sered; for (int i = 0; i < n; i++) { sered.x = vec[i].x; sered.y = vec[i].y; vec[i].x -= sered.x; vec[i].y -= sered.y; } sered.x /= n; sered.y /= n; sort(vec.begin, vec.end, cmp); for () } bool cmp(koor a, koor b) { if (vect(a, b) > 0) { return true; } return false; } int vect(koor a, koor b) { return a.x*b.y - b.x*a.y; } int main() { int n; cin >> n; for (int i = 0; i < 500000000; i++) { for (int j = 0; j < n; j++) { koor qwe; qwe.x = rand() % 50000; qwe.y = rand() % 50000; while (qwe.x + qwe.y > 50000) { qwe.x = rand() % 50000; qwe.y = rand() % 50000; } vec.push_back(qwe); } } }