|
|
вернуться в форумI think the right algorithm for this problem is DP... 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... With 20 stones it can be solved with simple brute-force |
|
|