[Programmers] 위클리 챌린지 - 1주차 - 부족한 금액 계산하기
1. 부족한 금액 계산하기 난이도 Level 1 기출 코딩테스트 연습 - 1주차 | 프로그래머스 (programmers.co.kr) A. 문제 위 프로그래머스 사이트에 접속하여 문제를 확인해주세요. B. 내 답안 def solution(price, money, count): answer = 0 total = 0 for i in range(1, count+1): total += (i * price) if money >= total: …