Esempio n. 1
0
        public override object RunPart2()
        {
            var computer = new IntcodeComputer(_program);

            computer.QueueInput(2);
            return(computer.NextOutput());
        }
Esempio n. 2
0
        public override object RunPart1()
        {
            var computer = new IntcodeComputer(InputAsIntcode);

            computer.QueueInput(1);
            computer.RunUntilHalt();
            return(computer.Output.Last());
        }
Esempio n. 3
0
        public override object RunPart1()
        {
            _program = InputAsIntcode;

            var computer = new IntcodeComputer(_program);

            computer.QueueInput(1);
            return(computer.NextOutput());
        }