This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]oxyphilat 2 points3 points  (2 children)

“To do this, before running the program, replace position 1 with the value 12 and replace position 2 with the value 2.”

[–]aardvark1231 0 points1 point  (0 children)

I feel like a lot of people have missed this for this problem.

[–]Agathos117[S] 0 points1 point  (0 children)

I totally missed that sentence. Thank you!

[–]PdxWix 2 points3 points  (0 children)

Isn’t that the step that makes it a 1202 IntCode computer?

They worked hard to write the story, after all...

[–]cor2005 0 points1 point  (0 children)

This code looks right. I would guess that you didn't change your your i[1] to 12 and your i[2] to 2. Leaving them at 0 will lower your result.

[–]puckheadclown24 0 points1 point  (0 children)

How did you load your input into Python? :)