Rosetta Problems

Energy-Saving Strategy

https://atcoder.jp/contests/awc0056/tasks/awc0056_b