Rosetta Problems

Free Contest 1 - KDIGIT

https://oj.vnoi.info/problem/fc001_kdigit