Editorial for COCI '10 Contest 1 #3 Sretan
Submitting an official solution before solving the problem yourself is a bannable offence.
A naïve solution would iterate over positive integers and check their luck until the
A better solution is possible if a pattern is noticed in lucky numbers.
Specifically, if we substitute the digit
A solution iteratively generating the first
Another speedup can be made by observing the number of lucky numbers with a given length. There are
Knowing this, we can determine the length
Comments