diff options
Diffstat (limited to '20/py/d09.py')
| -rw-r--r-- | 20/py/d09.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/20/py/d09.py b/20/py/d09.py index 9950f16..3094c94 100644 --- a/20/py/d09.py +++ b/20/py/d09.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import aoc20 import sys from collections import deque @@ -45,9 +46,6 @@ def pt2(_in): if __name__ == "__main__": - if len(sys.argv) > 1: - input = open(sys.argv[1], "r").readlines() - else: - input = open("../input/09", "r").readlines() + input = aoc20.read_input(sys.argv[1:], 9) print(pt1(input)) print(pt2(input)) |
