The prize of the winner - 10 000 rubles
There are many six-digit numbers written in the calculus system with a variable base, i.e. Each digit of this numbering system has its maximum value (base minus 1). The number in this system of calculus is written in decimal digits from left to right from the high order to the low order. Discharges are separated by a space. The maximum values โโof the digits of this system are โ4 8 15 16 23 42โ
minimum number
โ0 0 0 0 0 0โ corresponds to the number โ0 โณ in the decimal system,
โ0 0 0 0 0 42โ corresponds to the number โ42 โณ in the decimal system,
โ0 0 0 0 1 0โ corresponds to the number โ43 โณ in the decimal system, etc.
The input file contains a list of numbers recorded on this system. It is necessary to compile the output file, replacing each number of the input file in this numeration system with the number in the same numeration system following it.
Example:
In the input file โ1 3 12 22 0 11โ. In the output โ1 3 12 22 0 12โ.
In the input file โ2 0 0 16 23 42โ. In the output โ2 0 1 0 0 0โ.
Input file
konkurs1Good luck!
Details hereUPD
1) Please send a file, the source code is not needed and will not be protected.
2) Come up with a unique nickname. If, for example, your name is Sergey and you win, it will probably be confusing which Sergey won (the name is chosen as an example). We will of course understand by e-mail, but with a nickname easier.
3) Perform the task carefully. Check the results carefully. Wrong result is not counted.
4) All results on Monday through week, February 7 at 14-00
UPD
At the request of participants, the time of the competition is reduced. The right decisions are already there, the winner is known. After processing all responses, the results will be announced. Thanks to everyone who participated!
')
UPD
Results of the competition