about summary refs log tree commit diff
path: root/users/Profpatsch/advent-of-code/2020/01
diff options
context:
space:
mode:
Diffstat (limited to 'users/Profpatsch/advent-of-code/2020/01')
-rw-r--r--users/Profpatsch/advent-of-code/2020/01/main.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/users/Profpatsch/advent-of-code/2020/01/main.py b/users/Profpatsch/advent-of-code/2020/01/main.py
deleted file mode 100644
index e636017a54d5..000000000000
--- a/users/Profpatsch/advent-of-code/2020/01/main.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import sys
-
-l = []
-with open('./input', 'r') as f:
-    for line in f:
-        l.append(int(line))
-
-s = set(l)
-
-res=None
-for el in s:
-    for el2 in s:
-        if (2020-(el+el2)) in s:
-            res=(el, el2, 2020-(el+el2))
-            break
-
-if res == None:
-    sys.exit("could not find a number that adds to 2020")
-
-print(res)
-
-print(res[0] * res[1] * res[2])