From 58c3a85c29940e58c48709c5f83a8e7231cfe08c Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sat, 5 Dec 2020 08:55:49 +0100 Subject: [PATCH] Divide as float. Answer's still readable, after all. --- 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 9fc5a96..e68edbb 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)))[-1]//2) +print(sorted(map(lambda x:int(''.join(map(lambda y:'01'[int(y in'BR')],x)),2),open(0)))[-1]/2)