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

为什么WA

Posted by qbcqbc at 2010-03-28 18:12:53 on Problem 2624
var
 x1,x2,x3,y1,y2,y3,a,b:double;
begin
 while not eof do
  begin
   read(x1,y1);
   read(x2,y2);
   read(x3,y3);
   if (x3=x1) and (y3=y1) then
    begin
     readln(x3,y3);
     writeln((x2+x3-x1):0:3,' ',(y2+y3-y1):0:3);
    end
   else if ((x3=x2) and (y3=y2)) then
    begin
     readln(x3,y3);
     writeln((x1+x3-x2):0:3,' ',(y1+y3-y2):0:3);
    end
   else
    begin
     readln(a,b);
     if (a=x1) and (b=y1) 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