1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>

int
main(void)
{
    int n;
    scanf("%d\n", &n);
    int size = n / 10;
    int c;
    int points = 0;

    while (n > 0) {
        int addPoint = 1;
        //printf("%d--\n", n);
        for (int i = 0; i < size; i++) {
            char result;
            scanf("%c", &result);
            if (result == 'N') {
                addPoint = 0;
            }
            //printf("%c %d\n", result, addPoint);
        }
        //printf("--\n");

        if (addPoint) points++;
        n-=size;
    }

    printf("%d\n", points);

    return 0;
}