UVA956 The Minimum Slot Machine

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=897 [PDF](https://uva.onlinejudge.org/external/9/p956.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA956/9d5d025b438b5d7450fc228fe02a40c9065621d6.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA956/0bd743524f6e2ad7be7448a20c8cb908e983f3f1.png)

Output Format

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