UVA127 纸牌游戏 "Accordian" Patience

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=63 [PDF](https://uva.onlinejudge.org/external/1/p127.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA127/301b67574f2f3489cd9b9fa6c830432052e29863.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA127/4e54ec2ef6e6da2aac3392da10726e2a7308f38e.png)

Output Format

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