|
|
I am stuck with this, it seems impossible to value from input to 2 registers. Ok, you can actually read n from input multiple times. And you can reduce value in current register to zero while increasing 2 (or more) other registers. This leads to copy operation. The problem is not that difficult, therefore for me the most interesting question is the smallest program possible to write for this problem. Let's define the size of the program as H x W in your solution. Mine is 6 x 8. Who's smaller? =) |
|
|