← Back to List

5013번: Death Knight Hero ↗

Solutions

Python 3
105 B | 105 chars
ans = 0
for i in range(int(input())):
    s = input()

    if "CD" not in s:
        ans += 1

print(ans)