Thread: October 2020
View Single Post
Old 2020-11-04, 17:30   #28
0scar
 
Jan 2020

111112 Posts
Default

I don't fully understand the second block of code within published base solution.
I suppose that new code lines must be inserted as follows:

Quote:
10 A = a
20 B = b
24 Z = 42
25 JMP_ZERO A 75
30 JMP_ZERO B 80
40 X = A % B
50 A = B
60 B = X
70 JMP 30
75 CHAOS 76, 77, 80
76 CHAOS 75, 77, 80
77 CHAOS 75, 76, 80
80 RETURN A
If a and b are non-negative integers with a >= b, it makes sense.

What about line 24?
I argue that Gadi's program also computes the Answer to Life, the Universe, and Everything.
But it won't be returned before seven and a half million years...

Last fiddled with by 0scar on 2020-11-04 at 17:44
0scar is offline   Reply With Quote