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

[백준/파이썬]16455번 Desvendando Monty Hall

by 현장 2021. 4. 14.

-코드

t = int(input())
r = 0

for i in range(t):
    n = int(input())
    if n == 2 or n == 3:
        r += 1
print(r)