본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 26714번 Liczenie punktów

by 현장 2024. 7. 27.

-Code

n = int(input())
test = input()
res = 0

for i in range(0, n, n // 10):
    if not test[i:i + n // 10].count('N'):
        res += 1
print(res)