Rosetta Problems

Tests

https://atcoder.jp/contests/agc034/tasks/agc034_c