浏览代码

Update to run with input

ApisNecros 1 年之前
父节点
当前提交
4355b7bb20
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      2/2_1.js

+ 2 - 2
2/2_1.js

@@ -10,7 +10,7 @@ const demos = [
     [1, 1, 1, 4, 99, 5, 6, 0, 99],
 ];
 
-const computer = new Computer(demos[0]);
+const computer = new Computer(input);
 computer.Run();
-console.log(computer.stack.Get(0));
+console.log(computer.stack.GetAtIndex(0, 1));
 // computer.DumpMemory();