Rosetta Problems

K-DIGITS

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