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

Re:犯了个错误 提醒后来人

Posted by sicojuy at 2010-10-25 14:09:27 on Problem 1658
In Reply To:犯了个错误 提醒后来人 Posted by:kakassi at 2009-07-28 00:05:15
> 不要把
> 	if ((data[3]-data[2])==(data[2]-data[1])&& (data[2]-data[1])==(data[1]-data[0]))
> 写成
> 	if ((data[3]-data[2])==(data[2]-data[1])==(data[1]-data[0]))
> 粗心大意要人命啊
if(data[2] + data[0] == data[1] + data[1])
printf();
else
printf();
这样就行了。

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