Rosetta Problems

MDP

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