Problem 4060 · Hard

Count Evenly Good Integers

Walk the digits of a bound while tracking the parity of its even digits, adding every smaller prefix whose remaining digits can finish with the right parity.

Open the interactive visualisation