Incorrect output coming

In piyush and magical park problem i am geting output as 6 but should get 13 as per the problem.

hi @ujj1804_1156aee80205d0bf
refer this https://ide.codingblocks.com/s/642895

This code is also giving wrong output ,its giving output 6 but output should be 13, please tell whats the problem in my code.

the input taken is
4 4 5 20
. . * .
. # . .
. * . .
. # * *

hi @ujj1804_1156aee80205d0bf
u are entering the wrong test case… this is not given in the ques… its this

4 4 5 20
. . * .
. # . .
* * . .
. # * *

the code is correct and passing all test cases…

hi @ujj1804_1156aee80205d0bf
is it clear now??

Yes its clear , thank you very much.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.