first commit

This commit is contained in:
2020-12-02 12:34:15 +01:00
parent e7158639f6
commit f4c3aeabee
13 changed files with 1421 additions and 0 deletions

15
2020/01/01b.py Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python3
# Advent Of Code 2020 - Day 1 - Part 2
filename = "input.txt"
with open(filename) as f:
content = f.readlines()
content = [x.strip() for x in content]
for i in content:
for j in content:
for k in content:
if ( int(i)+int(j)+int(k) == 2020 ):
print (int(i)*int(j)*int(k))