UVA12585 Poker End Games

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=4030 [PDF](https://uva.onlinejudge.org/external/125/p12585.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12585/1c502cf66b63039e6c315b0fba6535eac8586415.png)

Input Format

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

Output Format

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