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

ft! The input is terminated by a line containing three -1 values.

Posted by jzc at 2005-11-24 22:57:40 on Problem 1046
 请看一下这一句:“The input is terminated by a line containing three -1 values.”
 应该用:while(a!=-1 || b!=-1 || c!=-1){ ... }吧???
 因为:
      !(a==-1 && b==-1 && c==-1) ==>  a!=-1 || b!=-1 || c!=-1
 可是while(a!=-1 && b!=-1 && c!=-1){ ... }竟然也过了!!!

  请解释一下,OK???
  谢谢了!


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