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:根据贪心写的算法,用正确的代码来测试,测了十几分钟也没有找到错误?????提交就WR,真郁闷啊.

Posted by insky at 2007-04-24 09:39:44 on Problem 1042
In Reply To:根据贪心写的算法,用正确的代码来测试,测了十几分钟也没有找到错误?????提交就WR,真郁闷啊. Posted by:411465294 at 2006-10-01 21:31:47
注意下面这个例子
4
1
0 0 0 0
1 1 1 1
1 2 3

我第一次wrong就是没处理全0的情况因为最优值初始化为0了,所以记录不到答案

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