diff options
Diffstat (limited to 'Day5.cs')
-rw-r--r-- | Day5.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Day5.cs b/Day5.cs index 3bbaa4c..ca9a08f 100644 --- a/Day5.cs +++ b/Day5.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; @@ -9,11 +8,11 @@ namespace aoc2019 { public override int DayNumber => 5; - private static readonly IEnumerable<int> tape = + private readonly IEnumerable<int> tape = File.ReadLines("input/day5.in").First().Split(',').Select(int.Parse); - private static int output; - public static void RunIntCode(List<int> v, int input) + private int output; + public void RunIntCode(List<int> v, int input) { var i = 0; while (i < v.Count && v[i] != 99) |