UVA10656 Maximum Sum (II)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1597 [PDF](https://uva.onlinejudge.org/external/106/p10656.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10656/e98bee083a982f4528e9af0a43951be1a0a8c6f5.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10656/026eba30e9bbe5c18daf55912f42e8b213ca7429.png)