I have tried this code twice but it gives me wrong answer always. Can anyone help me to know as to where I go wrong in the code ? I pass easily on the Sample input using gcc 4.8.2. CODE:
asked 01 Aug '14, 22:18

Yes the answer is not 3. @nibnalin : Please reread the problem statement carefully specifically this part. "Note that if she orders the same menu twice, then it is considered as two menus are ordered." 4096=2048+2048 => Only 2 menus are ordered. answered 02 Aug '14, 05:31

Are you sure, that for
the answer is answered 01 Aug '14, 22:47

Thanks in advance :)