y cant we sort instead of knapsack becoz here all are of same weight if we think in terms of knapsack…? can anyone help
que link: http://www.spoj.com/problems/BVAAN/
i did with sort and getting wrong answer my solution id :20487581
Only admins can see your submit.
PS http://discuss.spoj.com/search?q=BVAAN