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:怎么总是wrong ......啊,小弟附上代码,,,飘过的神仙帮俺看看,谢谢啦

Posted by sangxinyu at 2010-03-24 13:11:58 on Problem 1014
In Reply To:怎么总是wrong ......啊,小弟附上代码,,,飘过的神仙帮俺看看,谢谢啦 Posted by:qqqymx at 2010-02-18 16:18:26
x=a[i]+a[j]+a[g];
if(x==sum/2)

你的本意是不是应该为“x=a[i] * (i + 1) + a[j] * (j + 1) + a[g] * (g +1)”?
不然的话,x==sum / 2 几乎没有可能成立!

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