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了N久,后来自己发现了一点小细节问题,纪念一下

Posted by 421 at 2009-05-05 21:11:48 on Problem 1269
主要是对于
方程a1*x+b1*y=c1
    a2*x+b2*y=c2;
 if(a1*b2==a2*b1)
 {
    if(a1*c2==a2*c1&&b1*c2==b2*c1)//问题就出在这,我只写了a1*c2==a2*c1 WA我N次呀 !!!犯了这个低级错误
         printf("LINE\n");
    else
         prinntf("NONE\n");
 }

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