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
北京大学《ACM/ICPC大学生程序设计竞赛训练》暑期课面向全球招生!

。。。。。贪心是不可取的。试试下面这组数据吧

Posted by Fsss at 2015-07-16 17:08:28 on Problem 1787
In Reply To:真不知道是不是数据的问题!难道背包九一定是正确的?没人质疑出题人的思路么?附我的WA贪心代码 Posted by:Fsss at 2015-07-16 16:28:07
30 10 0 3 1

贪心应该是输出 5 0 3 0
其实是可以 10 0 0 1 的。。。。。。

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