Test cases of the problem are not testing this condition:

"he will not buy more than n packets of apples."

I got a success without putting check for this condition. 

On Saturday, 15 December 2012 19:39:34 UTC+5:30, Marti wrote:
>
> I am having trouble figuring out the reccurrence for the following on SPOJ 
> which I believe is a Knapsack DP problem.Please help me.
> http://www.spoj.com/problems/ABA12C/
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To post to this group, send email to google-code@googlegroups.com.
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/9SX_6gBpceEJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to