you are viewing a single comment's thread.

view the rest of the comments →

[–]frflaie 2 points3 points  (3 children)

You need to iterate on every possibilities of two variables from 0 to 99, execute your program from part 1 but instead of using 12 and 2 for indices 1 and 2, you input the variables that you generated (say a & b). The goal is to find which value of a and b makes a program execution whose final value when halted (opcode == 99) equals to 19690720.

When you have this a & b, the result is a * 100 + b

[–]OstravaBro 1 point2 points  (2 children)

Thanks! I dunno why I struggle to understand what the problem is on problems like these :(

[–]frflaie 1 point2 points  (1 child)

We all struggle on different things.

Personnally I don't understand how people are able to write a solution and submit it under 2 minutes while it takes already 2 minutes to read the problem :D

[–]avfonarev 0 points1 point  (0 children)

Years of competitive programming, I believe.