Educational Codeforces Round 23 A - Treasure Hunt
#includeusingnamespacestd;intmain(){intx1,y1,x2,y2,x,y;cin>>x1>>y1>>x2>>y2;cin>>x>>y;intderx,dery;intflag1=-1,flag2=-1;derx=abs(x1-x2);dery=abs(y1-y2);if(derx%x!=0){coutcnty){cntx^=cnty^=cntx^=cnty;x^