UVA10169 Urn-ball Probabilities!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1110 [PDF](https://uva.onlinejudge.org/external/101/p10169.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10169/7b194c2c7697d150020c990ca5e399949faffa77.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10169/01231a5aeb70d5af5e8cf149064d224344b742c0.png)