[백준/Python] 10886 - 0 = not cute / 1 = cute

orangesnail·2025년 3월 4일

백준

목록 보기
48/169

https://www.acmicpc.net/problem/10886


n = int(input())
count_0, count_1 = 0, 0

for _ in range(n):
    opinion = int(input())

    if opinion == 0:
        count_0 += 1
    elif opinion == 1:
        count_1 += 1
    
if count_1 > count_0:
    print("Junhee is cute!")
else:
    print("Junhee is not cute!")
profile
초보입니다. 피드백 환영합니다 😗

0개의 댓글