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

I am getting wrong answer in the question: AMR14D Problem - CodeChef

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

The link to my solution is: 3Dkt1f - Online C++ Compiler & Debugging Tool - Ideone.com

You output ‘Yes’ instead of ‘YES’.

1 Like