UVA10962 Don Giovanni's Last Dinner

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10962/1a0060af22cac6736d7e5bfd5332c1b297b8b946.png)