AdventOfCode/2017/23/input.3

31 lines
381 B
Groff

a = 1
b = 79 * 100 + 100000
c = 79 * 100 + 100000 + 17000
9. set f 1
10. set d 2
11. set e 2
12.
if g != 0 jump to 12
g = d * e - b
if g != 0
f = 0
g = (e - 1) - b
21. sub d -1
22. set g d
23. sub g b
24. jnz g -13 jump to 11
25. jnz f 2 jump to 27
26. sub h -1
27. set g b
28. sub g c
29. jnz g 2
30. jnz 1 3
31. sub b -17
32. jnz 1 -23 jump to 9