백준 26714번: Liczenie punktów #Python

ColorlessDia·2024년 2월 29일

algorithm/baekjoon

목록 보기
100/808
N = int(input())
test = input()

step = int(N / 10)

score = 0

for i in range(0, N, step):
    test_slice = test[i:i + step]
    
    if test_slice.count('N') == 0:
        score += 1

print(score)

0개의 댓글