UVA474 Heads / Tails Probability

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=415 [PDF](https://uva.onlinejudge.org/external/4/p474.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA474/e188d71e0123ef8a6a71f5d0657b6481bc8a1d46.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA474/52f9592dd9bdf10c124460e5c3c3c455cf2ba6d1.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA474/d078bebd6686e59c35de9bcbafb49ea440906b58.png)