initial commit
This commit is contained in:
commit
27fe77bbe1
134 changed files with 21939 additions and 0 deletions
10
2020/Day1/main.py
Normal file
10
2020/Day1/main.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
if __name__ == '__main__':
|
||||
numbers = []
|
||||
with open("numbers.txt") as f:
|
||||
numbers = list(map(int, f.readlines()))
|
||||
|
||||
for x in numbers:
|
||||
for y in numbers:
|
||||
for z in numbers:
|
||||
if x+y+z == 2020:
|
||||
print(x*y*z)
|
||||
Loading…
Add table
Add a link
Reference in a new issue