haju__log

[python][백준/BOJ] 10886번 : 0 = not cute / 1 = cute 본문

BOJ_백준

[python][백준/BOJ] 10886번 : 0 = not cute / 1 = cute

haju 2023. 3. 7. 15:51
반응형

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

 

10886번: 0 = not cute / 1 = cute

준희는 자기가 팀에서 귀여움을 담당하고 있다고 생각한다. 하지만 연수가 볼 때 그 의견은 뭔가 좀 잘못된 것 같았다. 그렇기에 설문조사를 하여 준희가 귀여운지 아닌지 알아보기로 했다.

www.acmicpc.net

 

n=int(input())
zero,one=0,0
for _ in range(n):
    a=int(input())
    if a==0:
        zero+=1
    else :
        one+=1
if zero>one:
    print("Junhee is not cute!")
else :
    print("Junhee is cute!")
반응형