Rosetta Problems

Min Product Sum

https://atcoder.jp/contests/agc039/tasks/agc039_f