Rosetta Problems

一番長いパターンを探せ

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/68