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
1005
. Stone Pile
No subject
Posted by
quelesgerova
11 Oct 2011 00:16
but there is 14 and 13. it is the minimum difference between them? 14-13=1
Re: No subject
Posted by
morbidel
11 Oct 2011 15:40
You should use all stones. One optimal arrangement is:
pile 1: 5 13 14 (sum 32)
pile 2: 8 27 (sum 35)
The difference is 3
© 2000–2024
Timus Online Judge Team
. All rights reserved.