Rosetta Problems

Similar but Different Ways(★6)

https://atcoder.jp/contests/typical90/tasks/typical90_cj