백준 27736 찬반투표 [Python]

지구온난화·2023년 4월 7일
0

백준 브론즈

목록 보기
51/52
n = int(input())

vote = list(map(int, input().split()))

if vote.count(0) >= n/2:
    print("INVALID")
else:
    if vote.count(1) > vote.count(-1):
        print("APPROVED")
    else:
        print("REJECTED")

2023-04-07

0개의 댓글