Comments

I am myself surprised. When my solution which considers all the digits got accepted after the contest, I really thought that the above solution might fail. But it didn't. I don't have any proof or counter-example either.

Auto comment: topic has been updated by OptimalNight (previous revision, new revision, compare).