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