Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
网上的题解和标程有错?贪心选五个一定对吗?如题,网上的做法都是贪心选择前五个 但是有一组数据能很容易的叉掉这个做法? 1 6 6 6 90 0 0 0 0 0 0 90 0 0 0 0 0 0 90 0 0 0 0 0 0 90 0 0 89 89 89 89 90 88 0 0 0 0 100 0 1 2 3 4 5 6 0 0 0 0 0 0 0 0 0 0 正确答案应该是90+90+90+90+88+100 但是如果每次只是贪心选择前五,就变成了90+90+90+0+89+100 网上的题解跑的答案都是4.59,udebug上的标程跑的也是4.59,so? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator