728x90
반응형
단순 사칙연산 문제이다.
N, K = map(int, input().split())
li = list(map(int, input().split()))
cnt = sum([(n+1)//2 for n in li])
print("YES" if cnt >= N else "NO")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15784번 질투진서(python) (0) | 2021.02.27 |
---|---|
백준 알고리즘 15781번 헬멧과 조끼(python) (0) | 2021.02.27 |
백준 알고리즘 15734번 명장 남정훈(python) (0) | 2021.02.27 |
백준 알고리즘 15667번 2018 연세대학교 프로그래밍 경진대회(python) (0) | 2021.02.27 |
백준 알고리즘 15372번 A Simple Problem.(python) (0) | 2021.02.27 |