826121 [프로그래머스 • 코틀린] 부족한 금액 계산하기 #82612 #82612 🎄 Question ? https://school.programmers.co.kr/learn/courses/30/lessons/82612 //82612 class Solution { fun solution(price: Int, money: Int, count: Int): Long { var answer: Long = -1 return answer } } 🧩 Thought Process use the for loop to find the summation of all the n times of rides. repeat count times! for 문을 이용해서 총 가격 찾기 Then subtract the sum by the money and return that as an answer 총 .. 2023. 11. 6. 이전 1 다음