본문 바로가기

코딩/백준

파이썬:백준 문제 풀이 10886번, 0 = not cute / 1 = cute

728x90
반응형

 

 

 

 

c = int(input())
a = 0
b = 0
for i in range(0,c):
    q = int(input())
    if q == 0:
        a+=1
    else:
        b+=1
if a>b:
    print("Junhee is not cute!")
else:
    print("Junhee is cute!")
 
 

 

 

반응형