Rosetta Problems

最大の和

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/633