Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
太阴了!var x1,x2,x3,y1,y2,y3,a,b:double; begin while not eof do begin read(x1);if eof then break; read(y1);if eof then break; read(x2);if eof then break; read(y2);if eof then break; read(x3);if eof then break; read(y3);if eof then break; if (abs(x3-x1)<0.000001) and (abs(y3-y1)<0.000001) then begin read(x3);if eof then break; readln(y3); writeln((x2+x3-x1):0:3,' ',(y2+y3-y1):0:3); end else if ((abs(x3-x2)<0.000001) and (abs(y3-y2)<0.000001)) then begin read(x3);if eof then break; readln(y3); writeln((x1+x3-x2):0:3,' ',(y1+y3-y2):0:3); end else begin read(a);if eof then break; readln(b); if (abs(a-x1)<0.000001) and (abs(b-y1)<0.000001) then writeln((x2+x3-a):0:3,' ',(y2+y3-b):0:3) else writeln((x1+x3-a):0:3,' ',(y1+y3-b):0:3); end; end; end. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator