Divide as float. Answer's still readable, after all.

This commit is contained in:
Lynn Ochs 2020-12-05 08:55:49 +01:00
parent e41e4d49e3
commit 58c3a85c29

View File

@ -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)