Jump to navigation
Jump to search
Instructions[edit]
Strategy[edit]
As the instruction indicate, you could take a similar approach to this problem as with Year 8 and add the value to itself several times, but it is possible to solve this problem with only three adds. This is because adding a number to itself is like multiplying it by two. And if you multiply a number by two, three times, it's just like multiplying it by eight.
In order to do this, you should copy the sum of the value with itself to a box (it can be the same box you previously used, or a new box, it's entirely up to you.) Then add the sum to itself (so in effect multiplying it by four.) Then copy it again and add it again to multiply it by eight.
a: INBOX COPYTO 0 ADD 0 COPYTO 1 ADD 1 COPYTO 2 ADD 2 OUTBOX JUMP a
Optimizing[edit]
It is not possible to further optimize this solution.
Performance[edit]
Steps Size Speed Goal 9 36 Reached 9 36