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

出现best_[i]>=tt[i]对所有i成立的原因不在题目数据,而在算法.

Posted by number at 2005-09-17 16:28:36 on Problem 1042
In Reply To:<=,<,都能过,会出现best_[i]>=tt[i]对所有i成立的情况. Posted by:number at 2005-09-17 16:25:37
你的思路不错,但是有些细微的地方没有注意到,原来的程序直接赋值是正确的,你这样加一个貌似必然break的判断却错了.

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