Rosetta Problems

最長の数列

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