help [PAYING UP]

hi… i am not getting any logic for this problem http://www.codechef.com/problems/MARCHA1

plz plz help… i have tried it several times
problem in applying bitwise operators

if there is any other approach, for solving this?

plz help

I tried your submission for test cases from problem statement and it returned strange results - http://ideone.com/21Jesa

it’s a simple subset sum implementation

Check this out for more help:

2 Likes