I have read and re-read this problem so many times that I already know it by heart.
I have searched at the forum and found this sample input and output posted by Jan:
Input:
456
789
234
453
125
175
183
256
012
100
000
Output:
5
Here's the link where I found this input/output:
http://online-judge.uva.es/board/viewto ... ight=10033
What's my problem?
I can't understand how the output can be 5.
First instruction: multiply by 6 the content of register 5
Second: multiply the register 8 content by the content of register 9
Third: set the register 3 the value 4
Fourth: multiply by 3 the content of register 5
Fifth: isn't interpreted
Sixtth: isn't interpreted
Seventh: isn't interpreted
Eighth: set the register 5 the value 6
Nineth: don't go to register 1, beacause the content of register 2 is 0
Tenth: halt interpreter
So we have 6 instructions.
Why is the correct output is 5?