UVA11439 Maximizing the ICPC

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2434 [PDF](https://uva.onlinejudge.org/external/114/p11439.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11439/0e4ce7391190043fc708e8e3a643b46eb3df2be5.png)

Input Format

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

Output Format

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