diff options
author | Profpatsch <mail@profpatsch.de> | 2024-10-05T12·18+0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2024-10-05T13·49+0000 |
commit | c925902015b163706f860b7540148fb6302d98dd (patch) | |
tree | ee062bfcfa924abfafaf04aabbec28ff0eb12bd8 /users/Profpatsch/advent-of-code/2020/01 | |
parent | 9c8087d705456ab6a0ec12a30a63e54cf3d8b0f2 (diff) |
chore(users/Profpatsch): remove AoC stuff r/8771
Change-Id: Ifb134053c0f92dfdb4f2c0a3418c0c6a7a1a8507 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12574 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'users/Profpatsch/advent-of-code/2020/01')
-rw-r--r-- | users/Profpatsch/advent-of-code/2020/01/main.py | 22 |
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]) |