• + 1 comment

    Im so close. How does test case #2 come out to 50% chance? there are zero tunnels. My logic is so close, but I would think the below test case would be .25 * .25 * .50 = 0.325 to reach the exit. What am I assuming?

    *- Input (stdin) *- 3 7 0 *- ##OOO## - %OOAOO *- ##OOO##

    Expected Output 0.5000000000