본문 바로가기

코테 준비

백준 10886번 - 0 = not cute / 1 = cute(Python)

n = int(input())

yesno = 0

for i in range(n):
    num = int(input())

    if(num==0):
        yesno -= 1
    else:
        yesno += 1


if yesno<0:
    print("Junhee is not cute!")
else:
    print("Junhee is cute!")

'코테 준비' 카테고리의 다른 글

백준 5063번 - TGN(Python)  (0) 2022.05.22
백준 7567번 - 그릇(Python)  (0) 2022.05.21
백준 2754번 - 학점계산(Python)  (0) 2022.03.25
백준 10156번 - 과자(Python)  (0) 2022.03.20
백준 2476번 - 주사위 게임(Python)  (0) 2022.03.20