AoC2020/05-1-1.py

2 lines
95 B
Python

print(sorted(map(lambda x:int(''.join(map(lambda y:'01'[int(y in'BR')],x)),2),open(0)))[-1]/2)