UVA10935 卡片游戏 Throwing cards away I

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1876 [PDF](https://uva.onlinejudge.org/external/109/p10935.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10935/04b5bf3f22988460c478d5e0eaad7b24fe43b5d4.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10935/87cedea733d4be64fa50b2ae857327019eb4a64d.png)