We're a place where coders share, stay up-to-date and grow their careers.
Python, why make it complicate if it is so siple?
for (a,b) in itertools.combinations([int(n) for n in open('input')], 2): if a+b == 2020: print(a*b)
Python, why make it complicate if it is so siple?