Editorial for COCI '14 Contest 4 #1 Cesta
Submitting an official solution before solving the problem yourself is a bannable offence.
The prime factorization of number
We know that a number is divisible by -1
.
What is obvious is that it is sufficient to sort the digits of number
Implementations with time complexity of
Comments