Please help me in "Puzzle Game" question

Hello,

I have been trying to solve this practice problem H1, H1 Problem - CodeChef

Here is my code: CodeChef: Practical coding for everyone

It gives me WA. But I verified my solution against a previously accepted solution. All I needed to do is to check if my dictionary ‘depths’ is matching with the corresponding dictionary in an accepted code. And they were matching!

Can somebody please help me figure out why I’m geting WA?

Thanks in advance!

Hi,

Here is the list of depths file, I generated it using my solution and it’s accepted. You may compare and find if your program is working fine.