Codeforces Round #388 (Div. 2), problem: (B) Parallelogram is Back Solution in C/C++

By | 2017-04-07T22:11:45+00:00 January 6th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

Codeforces Round #388 (Div. 2), problem: (B) Parallelogram is Back Solution in C/C++     int main() { int x1,y1,x2,y2,x3,y3; scanf("%d%d\n%d%d\n%d%d",&x1,&y1,&x2,&y2,&x3,&y3); printf("3\n%d %d\n%d %d\n%d %d",x1+x2-x3,y1+y2-y3,x2+x3-x1,y2+y3-y1,x3+x1-x2,y3+y1-y2); return 0; }