UVA12448 Casino Advantage

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3879 [PDF](https://uva.onlinejudge.org/external/124/p12448.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12448/c943dbccdaaa2aef4b50476ece71af92488fbc96.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12448/0d63ab5fd3d712aa5d1cb137c23e3759302cf36e.png)