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

14
2020/01/01.py Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python3
# Advent Of Code 2020 - Day 1
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:
if ( int(i)+int(j) == 2020 ):
print (int(i)*int(j))