AoC2020/01-1-1.py

3 lines
66 B
Python

l=set(map(int,open(0)))
print([a*b for a in l if(b:=2020-a)in l])