#include #include #include struct xy { int x,y; } pts[20002]; struct { double x,y; } teziste; int cmp(const void * A,const void *B) { struct xy * l, *r; l = (struct xy *) A; r = (struct xy *) B; if (l->x < r->x) return -1; else if (l->x > r->x) return 1; else return r->y - l-> y; } void spocti(int i,struct xy * obraz) { obraz->x = (int) (teziste.x * 2 - pts[i].x); obraz->y = (int) (teziste.y * 2 - pts[i].y); } int main(int ac, char ** av) { register int i, npts; struct xy obraz; bool nl=false; for (;;nl=true) { if (nl) putchar('\n'); // nacist scanf("%d" , & npts); if (!npts) exit(0); for (i=0;i