← Back to List

2810번: 컵홀더 ↗

Solutions

Python 3
69 B | 69 chars
input()
s=input()
a=s.count('LL')
if a-1>=0:
    a-=1
print(len(s)-a)