ENG
RUS
Timus 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
Dereky
greed algorithm is wrong
[1] // Problem
1342. Enterprise
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
Agibalov Evgeniy
Re: greed algorithm is wrong
// Problem
1342. Enterprise
2 Dec 2019 13:47
Best strategy is 150.00
Edited by author 02.12.2019 13:48
© 2000–2025
Timus Online Judge Team
. All rights reserved.