목록코테 (6)
today_is
https://softeer.ai/practice/7374 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 코드import java.io.*;import java.util.*;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int arr[][] = new int[3][3]; int cost = 1000; for(int i=0; i 한 줄씩 해석 Scanner 객체를 생성한다 int로 2차원 배열을 3 * 3으로 생성 우선, cost는 터무니 없이 큰 값으로 초기화 시켜준다 (나중에 co..

https://softeer.ai/practice/7628 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 오늘은 프로그래머스 대신에, 실제 기업에서 나올 법한 문제를 풀어보았다 ! 코드import java.util.*;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int arr[] = new int[num]; for(int i=0; i map = new HashMap(); for(int i=0; i 한 ..

https://school.programmers.co.kr/learn/courses/30/lessons/42746 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 무슨 기준으로 점수를 많이 주는건지 모르겠다. 코드import java.util.*;class Solution { public String solution(int[] numbers) { String[] newArr = new String[numbers.length]; for(int i=0; i (b + a).compareTo(a + ..

https://school.programmers.co.kr/learn/courses/30/lessons/42748 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 코드import java.util.*;class Solution { public int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; for(int i=0; i 오류발생 ArrayIndexOutOfBoundsException 예외발생 로직은 이..
https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 코드import java.util.*;class Solution { public int solution(String[][] clothes) { int answer = 1; HashMap map = new HashMap(); for(int i=0; i 한줄씩 해석 answer값을 1로 초기화해둔다 : 경우의 수를 구..

https://school.programmers.co.kr/learn/courses/30/lessons/72410<figure id="og_1701761717558" contenteditable="false" data-ke-type="opengraph" data-ke-align="alignCenter" data-og-type="website" data-og-title="프로그래머스" data-og-description="코드 중심의 개발자 ..