示例#1
0
        public override int SolvePart2()
        {
            var    instructionCollection = new InstructionCollection(instructions);
            var    system = new WireSystem(instructionCollection);
            ushort value  = system["a"];

            instructionCollection.SetAssignmentInstruction("b", Instruction.Assignment(value.ToString(), "b"));
            system.Reset();
            value = system["a"];
            return(value);
        }