Rosetta Problems

AB*A Changing

https://atcoder.jp/contests/agc069/tasks/agc069_c