Rosetta Problems

Concatenation of Signboards

https://atcoder.jp/contests/awc0111/tasks/awc0111_e