Rosetta Problems

Sum of Min of Length

https://atcoder.jp/contests/abc298/tasks/abc298_h