Rosetta Problems

Roughly Sorted

https://atcoder.jp/contests/agc054/tasks/agc054_c