I simply ran the program until it hits the instruc...
# advent-of-code
s
I simply ran the program until it hits the instruction with register 0 and look into register 3. Part 2 runs the program until it hits a cycle at that instruction. Most code is from day 19
👍 1
a
How long did you have to wait? I tried this and it never seemed to hit my conditional break point.
s
257ms for part 1, 85 seconds for part 2
a
Wow, used Day19 code to attempt to solve Part1 but it was gone for about 2 mins and never reached line 28. Ended up using paper & pencil and rewriting the assembly code as Kotlin loops.
s
I've started using pen & paper (or rather looking at the output instruction for instruction). It still does a lot of counting to get to that line. I didn't think it would finish in appropriate time. Surprisingly it did.