def angryProfessor(k, a):
# Write your code here
attend = sum([1 if i <= 0 else 0 for i in a])
return 'NO' if attend >= k else 'YES'
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
[HackerRank-python] Viral Advertising (0) | 2022.07.26 |
---|---|
[HackerRank-python] Beautiful Days at the Movies (0) | 2022.07.25 |
[HackerRank-python] Utopian tree (0) | 2022.07.20 |
[HackerRank-python] Designer PDF Viewer (0) | 2022.07.19 |
[HackerRank-python] The Hurdle Race (0) | 2022.07.14 |