CodingTest/[프로그래머스 LV.0]
프로그래머스 LV.0 - 개미 군단[Python]
짱엉
2023. 1. 22. 00:25
728x90
def solution(hp):
return hp // 5 + (hp % 5 // 3) + ((hp % 5) % 3)
def solution(hp):
answer = hp // 5
hp = hp % 5
answer += hp // 3
hp = hp % 3
answer += hp
return answer
728x90