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

[백준/파이썬] 30999번 민주주의

by 현장 2023. 12. 26.

-Code

n, m = map(int, input().split())
res = 0

for _ in range(n):
    line = input()

    if len(line) / 2 < line.count("O"):
        res += 1

print(res)