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:AC C++ code

Posted by hehaiqian at 2010-12-31 10:43:57 on Problem 1010
In Reply To:Re:AC C++ code Posted by:Lvcmd at 2010-10-07 09:16:56
> 发现有问题呀,给你一个测试数据。
> stamp: 
> 84 54 59 13 41 56 32 5 84 88 25 61 13 40 88 85 12 84 67 12 8 24 40 58 82 14 56 54 6 12  0
> customer: 
> 80 66 45 1 56 90 59 53 55 9 40 73 99 54 21 30 17 79 92 88 55 72 32 55 45 69 33 7 31 40  0
> 其中的 客户请求若为 55 ,则你代码码给出的最优解为13 5 13 24 。而最优解应该为 32 5 12 6 。程序中对tie的判断应该还有问题。

====>对于用户是55的情况,32 5 12 6 这组解中值为12的有两个啊,应该是tie。

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