Editorial for COCI '15 Contest 4 #1 Yoda
Submitting an official solution before solving the problem yourself is a bannable offence.
In
The solution is a combination of the algorithm for determining the digits of a number and the algorithm for creating a number. Since we don't want to think about the number of digits, we can assume that there are at most YODA
in the case when the new value of the number is equal to zero is not a good solution because there are cases when the number is zero, and YODA
shouldn't be output (e.g. when the zeroes appear in the same position of digits in the number). Let us notice that the given word will be output only when the new number hasn't been modified in the program.
Comments