first commit
This commit is contained in:
14
2020/01/01.py
Executable file
14
2020/01/01.py
Executable 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))
|
Reference in New Issue
Block a user