mirror of
https://gitlab.com/MisterBiggs/aoc2020.git
synced 2026-06-03 16:40:27 +00:00
gold star 2
This commit is contained in:
+3
-2
@@ -8,5 +8,6 @@ input = [int(a) for a in input]
|
||||
|
||||
for i in input:
|
||||
for j in input:
|
||||
if i+j == 2020:
|
||||
print(i,j,i*j)
|
||||
for k in input:
|
||||
if i+j+k == 2020:
|
||||
print(i,j,k,i*j*k)
|
||||
|
||||
Reference in New Issue
Block a user