UVA12588 Team Mathematics Olympiad

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=4033 [PDF](https://uva.onlinejudge.org/external/125/p12588.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12588/4cd1ff749634406317cd8c8e0bbceb05f71e431e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12588/578ba1d0d5ee969a0e0247dc4dac1f8754e99010.png)

Output Format

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