diff options
Diffstat (limited to 'Day5.cs')
-rw-r--r-- | Day5.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Day5.cs b/Day5.cs index ca9a08f..ecfa14e 100644 --- a/Day5.cs +++ b/Day5.cs @@ -8,8 +8,11 @@ namespace aoc2019 { public override int DayNumber => 5; - private readonly IEnumerable<int> tape = - File.ReadLines("input/day5.in").First().Split(',').Select(int.Parse); + private readonly IEnumerable<int> tape; + public Day5() + { + tape = Input.First().Split(',').Select(int.Parse); + } private int output; public void RunIntCode(List<int> v, int input) |