ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1342. Enterprise

greed algorithm is wrong
Posted by Dereky 31 Mar 2012 06:42
there is some problem in greed algorithm,such as
2 2
3 80 80
3 100 0
the best strategy is 100,50 while greed algorithm gets 80,80
Re: greed algorithm is wrong
Posted by Agibalov Evgeniy 2 Dec 2019 13:47
Best strategy is 150.00

Edited by author 02.12.2019 13:48