Search found 2 matches

by tkat
Tue Sep 21, 2004 5:52 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39753

I thought I'd just come back to answer my own questions, in case somebody else works on this in the future. :)

1) No. RAM[0] is initialized with the first line in case, i.e. 299 in the example.
2) Correct.
3) Yes, there's a loop happening. It's basically decrementing the value in reg[8] from 3 to ...
by tkat
Tue Sep 14, 2004 6:26 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39753

10033 - Explanation of the problem?

Hi, I'm trying to understand what the problem accomplishes. As far as I can tell, the sample input is doing the following:

1 There is one case below

299 Set register 9 to 9 // R9=9
492 Multiply register 9 by 2 // R9=18
495 Multiply register 9 by 5 // R9=90
399 Add 9 to register 9 // R9=99
492 ...

Go to advanced search