Пример #1
0
        public override object RunPart2()
        {
            var computer = new IntcodeComputer(_program);

            computer.QueueInput(2);
            return(computer.NextOutput());
        }
Пример #2
0
        public override object RunPart1()
        {
            _program = InputAsIntcode;

            var computer = new IntcodeComputer(_program);

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