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