#!python
n = int(input())
tests_res = input()
res = 0
group_count = n // 10
for p in range(10):
all_true = True
for i in range(group_count):
if tests_res[p*group_count + i] == 'N':
all_true = False
if all_true:
res += 1
print(res)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!python n = int(input()) tests_res = input() res = 0 group_count = n // 10 for p in range(10): all_true = True for i in range(group_count): if tests_res[p*group_count + i] == 'N': all_true = False if all_true: res += 1 print(res) |
English