UVA10056 What is the Probability ?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=997 [PDF](https://uva.onlinejudge.org/external/100/p10056.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10056/7818f73484c664eafba47cb6160438f071a48f7d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10056/1ba1e89cb473024900915161475e787f0d29a325.png)