UVA13018 Dice Cup

Description

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

Input Format

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

Output Format

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