Rosetta Problems

Minimal Order

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