https://school.programmers.co.kr/learn/courses/30/lessons/82612# class Solution { public long solution(int price, int money, int count) { long cost = 0; for(int i = 1; i = cost) { answer = 0; } return answer; } }
프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/12912 class Solution { public long solution(int a, int b) { long answer = 0; if(a < b){ for(int i = a; i
https://school.programmers.co.kr/learn/courses/30/lessons/12918 class Solution { public boolean solution(String s) { boolean answer = true; if(s.length() == 4 || s.length() == 6){ for(int i = 0; i '9'){ return false; } } } else return false; return answer; } }
https://school.programmers.co.kr/learn/courses/30/lessons/77884 class Solution { public int solution(int left, int right) { int answer = 0; for(int i = left; i
https://school.programmers.co.kr/learn/courses/30/lessons/12917 class Solution { public String solution(String s) { String answer = ""; char [] arr = s.toCharArray(); char temp; for (int i = 0; i < arr.length - 1; i++){ for(int j = i + 1; j < arr.length; j++){ if(arr[i] < arr[j]){ temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } } for(int i = 0; i < arr.length; i++){ answer += arr[i]; } return..
https://school.programmers.co.kr/learn/courses/30/lessons/120851 class Solution { public int solution(String my_string) { int answer = 0; String [] arr = my_string.replaceAll("[a-zA-Z]","").split(""); for (String s : arr) { if (!s.equals("")) { answer += Integer.parseInt(s); } } return answer; } }