title: "[프로그래머스] 개미 군단 Python 파이썬 해설 (Level 0) - 이도훈"
cleanUrl: "programmers/120837"
description: "프로그래머스 Level 0 문제 [개미 군단]의 풀이를 정리합니다."

문제 설명 및 제한사항

아이디어 및 해결 방법

코드

def solution(hp):
    cnt = 0
    
    cnt += hp // 5
    hp = hp % 5
    
    cnt += hp // 3
    hp = hp % 3
    
    cnt += hp // 1
    return cnt

출처

프로그래머스 코딩테스트 연습 https://school.programmers.co.kr/learn/challenges