Rosetta Problems

Numeric and Lexicographic order

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