본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#182 백준 파이썬 [10886] 0 = not cute / 1 = cute

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

 

#Solution

V = int(input())
cute = 0

for _ in range(V):
    if int(input()) == 1:
        cute += 1

if cute > V//2:
    print("Junhee is cute!")
else:
    print("Junhee is not cute!")