Rosetta Problems

最長の階段

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