code_practice

Hackerrank 레벨업 하기31 [Angry Professor]

  • By Khel Kim, 김현호
  • 22 Jan 2019
  • Tags : coding_practice

Hackerrank 레벨업하기
문제
Angry Professor

def angryProfessor(k, a):
    watchout = [x <= 0 for x in a]
    if watchout.count(1) < k:
        return 'YES'
    else:
        return 'NO'

궁금하신게 있다면 메일 주세요.
k2h7913@daum.net
cafehero123@gmail.com