Editorial for Mock CCC '18 Contest 1 J1 - A String Problem


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: xiaowuc1

Due to the low bounds, it suffices to increment N and keep on incrementing it until a number with no zeroes appears.

A slightly better solution is to increment it once, then replace any zeroes observed with ones.


Comments

There are no comments at the moment.