Shorter 01-1

This commit is contained in:
Lynn Ochs 2020-12-04 00:43:22 +01:00
parent f72ab12d9e
commit b8b7087bc4

View File

@ -1,2 +1,2 @@
l=set(map(int,open("/dev/stdin"))) l=set(map(int,open("/dev/stdin")))
print([a*(2020-a) for a in l if 2020-a in l]) print([a*b for a in l if (b:=2020-a) in l])