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
반응형

+ Recent posts