• Skip to primary navigation
  • Skip to content
  • Skip to footer
FRESHTUNA.LOG
    • Categories
    Dongwon Kim

    Dongwon Kim

    I am studying backend techinques like Spring, Django, AWS.

    • GitHub

    프로그래머스 lv0 치킨쿠폰

    less than 1 minute read

    1. 개요Permalink

    • https://school.programmers.co.kr/learn/courses/30/lessons/120884

    2. 풀이Permalink

    def solution(chicken):
        answer = 0
        
        while chicken >= 10:
            newCoupon = chicken//10
            answer += newCoupon
            chicken = newCoupon + chicken%10 
            
        return answer
    

    Categories: Algorithm, posts

    Updated: December 24, 2022

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    kubeadm 기반 클러스터 구성 연습

    1 minute read

    설치가이드

    Kubernetes 와 OpenShift

    2 minute read

    컨테이너 가상화 개론

    16 minute read

    Virtualization

    Connection Draining

    1 minute read

    개요

    • Follow:
    • Feed
    © 2024 FRESHTUNA. Powered by Jekyll & Minimal Mistakes.