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)