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 1005. Stone Pile

I think the right algorithm for this problem is DP...
Posted by zxy_snow 11 May 2011 11:48
0-1 Knapsack, O(sum*n)...For the week data, I haven't got TLE...
Re: I think the right algorithm for this problem is DP...
Posted by AterLux 11 May 2011 13:12
With 20 stones it can be solved with simple brute-force