How does that fo with the first instruction :/
# advent-of-code
a
How does that fo with the first instruction :/
k
What do you mean? What's 304099?
t
I didn't understand the input part either when I first read the instructions. I found this part confusing:
Opcode 3 takes a single integer as input and saves it to the position given by its only parameter. For example, the instruction 3,50 would take an input value and store it at address 50.
But what it means is that YOU are providing an input number (an integer, that the puzzle specifies). This is NOT your puzzle input, which is the PROGRAM you ar running.
In my program, I made the input (and output) a List of Ints, but I only ended up needing one of them for the input, so you could just make your input a single Int.
It's set to
1
in part 1, and something else in part 2. It's how the puzzle author triggers different parts of the program (your puzzle txt input) to run without having to provide two text files.
Ping me if this is still unclear and I;ll see if I can help. 🙂