UVA10555 Dead Fraction

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1496 [PDF](https://uva.onlinejudge.org/external/105/p10555.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10555/5e137d5f63f4aa72c7271edc70d22f4c332e0937.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10555/57f8d328ac217c26b8daeb88af04025fa9a3b1c3.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10555/5e6b21c46e98a6c456138bafb1b44138b6b5ad75.png)