Rosetta Problems

回文スコア

https://atcoder.jp/contests/nikkei2019-ex/tasks/nikkei2019ex_g