From e41e4d49e3a8d8dd284cb543ffa14062828cf4c4 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sat, 5 Dec 2020 08:54:46 +0100 Subject: [PATCH] Fix missing index --- 05-1-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05-1-1.py b/05-1-1.py index 32bc94b..9fc5a96 100644 --- a/05-1-1.py +++ b/05-1-1.py @@ -1 +1 @@ -print(sorted(map(lambda x:int(''.join(map(lambda y:'01'[int(y in'BR')],x)),2),open(0)))//2) +print(sorted(map(lambda x:int(''.join(map(lambda y:'01'[int(y in'BR')],x)),2),open(0)))[-1]//2)