aboutsummaryrefslogtreecommitdiff
path: root/2020/09/puzzle-2.py
diff options
context:
space:
mode:
Diffstat (limited to '2020/09/puzzle-2.py')
-rwxr-xr-x2020/09/puzzle-2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/2020/09/puzzle-2.py b/2020/09/puzzle-2.py
index 8833f50..c890fb3 100755
--- a/2020/09/puzzle-2.py
+++ b/2020/09/puzzle-2.py
@@ -1,10 +1,11 @@
#!/usr/bin/env python3
+
import numpy as np
def main() -> None:
goal = 138879426
- with open("input", "r") as f:
+ with open("input", "r", encoding="utf-8") as f:
nums = np.array(list(map(int, f.readlines())), dtype=int)
lp = 0