Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

太阴了!

Posted by qbcqbc at 2010-03-28 19:02:22 on Problem 2624
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator