김두두의 블로그
[파이썬] 백준 10886번 0 = not cute / 1 = cute 본문
https://www.acmicpc.net/status?user_id=gylu7&problem_id=10886&from_mine=1
채점 현황
www.acmicpc.net
n=int(input())
A=[2]*n
for i in range(n):
A[i]=int(input())
cute=0
notcute=0
for j in range(n):
if A[j]==0:
notcute=notcute+1
elif A[j]==1:
cute=cute+1
if cute>notcute:
print("Junhee is cute!")
elif cute<notcute:
print("Junhee is not cute!")
'it' 카테고리의 다른 글
[파이썬] 백준 9655번 돌 게임 (0) | 2022.04.08 |
---|---|
[파이썬] 백준 2693번 N번째 큰 수 (0) | 2022.04.08 |
[파이썬] 백준 5543번 상근날드 (0) | 2022.04.06 |
[파이썬] 백준 5086번 배수와 약수 (0) | 2022.04.05 |
[파이썬] 백준 10156번 과자 (0) | 2022.04.04 |