Rosetta Problems

Swap and Maximize

https://atcoder.jp/contests/utpc2021/tasks/utpc2021_b