From b8b7087bc4590106b731873626ca706007a54b7c Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Fri, 4 Dec 2020 00:43:22 +0100 Subject: [PATCH] Shorter 01-1 --- 01-1-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])