diff --git a/01-1-1.py b/01-1-1.py index e4fd4ba..1fe1ede 100644 --- a/01-1-1.py +++ b/01-1-1.py @@ -1,2 +1,2 @@ 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])