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
Carnegie Mellon University Robotics Institute | Research Associate | Developing For Our Lives, 세상에 기여하는 삶을 살고자 개발하고 있습니다

0개의 댓글

관련 채용 정보