Nikolay Domashenko's submission of Distinct Codes | CodeChef