public override string PartB() { var input = Lines.First().Split(',').Select(long.Parse).ToArray(); var inp = new List <long> { 5 }; var outp = new List <long>(); var c = new SeqCompiler(inp, outp, input); c.Run(); return(outp[outp.Count - 1] + ""); }
public override string PartB() { var program = Lines.First().Split(',').Select(long.Parse).ToArray(); var inpA = new List <long> { 2 }; var outA = new List <long>(); var c = new SeqCompiler(inpA, outA, program); c.Run(); return(outA[0] + ""); }