public void Solve() { _input[1] = "12"; _input[2] = "2"; var interpreter = new IntCodeInterpreter(_input); interpreter.Run(); Result = interpreter.Output[0]; }
public void Solve() { for (var noun = 0; noun < 100; noun++) { for (var verb = 0; verb < 100; verb++) { _input[1] = noun.ToString(); _input[2] = verb.ToString(); var interpreter = new IntCodeInterpreter(_input); interpreter.Run(); if (interpreter.Output[0] == "19690720") { Result = (100 * noun + verb).ToString(); break; } } } }