Getting wrong answer in Matryoshka Dolls. Please give some testcases.

I am getting wrong answer in the question: http://www.codechef.com/problems/AMR14D

Can anyoune please tell me any test case which is not satisfying?

The link to my solution is: https://ideone.com/3Dkt1f

You output ‘Yes’ instead of ‘YES’.

1 Like