
However, it turns out that you are the first explorer to find him in over a hundred years, so he has grown incredibly bored. Instead of a fight, he offers to play a game for his artefacts. The hall has $$$d$$$ closed doors, but only one of them leads to the artefacts (Monty knows which one it is, of course). The procedure is as follows:
The input consists of:
Output your chance to win at Monty's game when playing optimally. Your answer should have an absolute or relative error of at most $$$10^{-6}$$$.
3 1 1
0.6666666667
8 4 2
0.7500000000
15 4 2
0.3259259259
| Name |
|---|


