10886 : 0= not cute/ 1 = cute

서희찬·2021년 8월 2일
0

백준

목록 보기
12/105

문제

코드

n = int(input())
cute = 0 ; notCute=0
for _ in range(n):
    ppl=int(input())
    if ppl ==0:
        notCute+=1
    elif ppl == 1:
        cute += 1
if cute>notCute:
    print("Junhee is cute!")
else :
    print("Junhee is not cute!")

해설

단순조건문 문제..

profile
부족한 실력을 엉덩이 힘으로 채워나가는 개발자 서희찬입니다 :)

0개의 댓글