UVA600 A Duckpin Tournament

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=541 [PDF](https://uva.onlinejudge.org/external/6/p600.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA600/a405136e84992cba621f3c5ce6fcd87c3eb724c1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA600/5491990f948830926d0192283ef72f7c2a9d18df.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA600/33d538b908a6b8ef0bd29e6b7020a6bb4677e147.png)