-
[프로그래머스] 옷가게 할인 받기 - python코딩테스트 2023. 12. 9. 17:05
https://school.programmers.co.kr/learn/courses/30/lessons/120818
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr

def solution(price): if price >= 500000: return int(price*0.8) elif price >= 300000: return int(price*0.9) elif price >= 100000: return int(price*0.95) else: return int(price)'코딩테스트' 카테고리의 다른 글
[프로그래머스] 배열 뒤집기 - python (0) 2023.12.09 [프로그래머스] 아이스 아메리카노 - python (0) 2023.12.09 [프로그래머스] 배열의 평균값 - python (1) 2023.12.07 [프로그래머스] 피자 나눠 먹기 (3) - python (1) 2023.12.07 [프로그래머스] 피자 나눠 먹기 (2) - python (1) 2023.12.07