Rosetta Problems

Palindromic Shortest Path

https://atcoder.jp/contests/abc394/tasks/abc394_e