Rosetta Problems

Bracket Score

https://atcoder.jp/contests/agc048/tasks/agc048_b