UVA11684 MC part deux

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2731 [PDF](https://uva.onlinejudge.org/external/116/p11684.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11684/54024399e7c6768f03ab7b099b02c8b6beaa879f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11684/2942f5a34a04d67495e1eb7691fc9e216fa53ad9.png)

Output Format

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