#include #include #include #include using namespace std; struct point { long long x,y; }; int n,c,cc,t; bool ok; point a[100000]; float dist(point a,point b) { return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)); } bool isosc(point a,point b,point c) { float d1=dist(a,b); float d2=dist(b,c); float d3=dist(a,c); return (d1==d2||d2==d3||d1==d3); } bool isok(point a,point b,point c) { if (!isosc(a,b,c)) return false; if (a.x==b.x && b.y==c.y) return true; if (a.x==c.x && b.y==c.y) return true; if (c.x==b.x && c.y==a.y) return true; if (a.x==b.x && c.y==a.y) return true; if (a.x==c.x && b.y==a.y) return true; if (a.y==b.y && a.x==c.x) return true; if (a.y==b.y && b.x==c.x) return true; return false; } bool comp(point a,point b) { return ((a.x!=b.x && a.y!=b.y)); } void af(point a,point b,point c) { cout< A(a,a+n); sort(A.begin(),A.end(),comp); int i=0; for (std::vector::iterator it=A.begin();it!=A.end();++it,++i) a[i]=*it; } int main() { cin>>n; for (int i=0;i>a[i].x>>a[i].y; //sort(); for (int i=0;ij && cc