This is typical knapsack problem. On Mon, Jun 18, 2012 at 10:33 AM, Rituraj <worstcod...@gmail.com> wrote:
> Hi, > I am trying to solve this problem. > http://www.spoj.pl/problems/SCUBADIV/ > But I am getting a lot of WA! > > Any good logic(solution) to solve the problem? > Thanks in advance for your reply. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/algogeeks/-/WOiAgraJqi8J. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.