UVA13021 Game of Cards

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4909 [PDF](https://uva.onlinejudge.org/external/130/p13021.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13021/1f30509d3d28780261deb1468c23141e067fdfc6.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13021/0925a646f314ea884cd31b07f860784e18d6a3a7.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13021/48b15532f34c2db5ac86c9a5fa578ce83e6eeedd.png)