문제 https://www.acmicpc.net/problem/1238 1238번: 파티 첫째 줄에 N(1 ≤ N ≤ 1,000), M(1 ≤ M ≤ 10,000), X가 공백으로 구분되어 입력된다. 두 번째 줄부터 M+1번째 줄까지 i번째 도로의 시작점, 끝점, 그리고 이 도로를 지나는데 필요한 소요시간 Ti가 들어 www.acmicpc.net 다익스트라 알고리즘 https://devfunny.tistory.com/641?category=905091 최단 경로 알고리즘 - 다익스트라 알고리즘 우선순위 큐 사용 버전 들어가기전 기본 다익스트라 알고리즘에 대해 먼저 공부하자. https://devfunny.tistory.com/638 최단 경로 알고리즘 - 다익스트라 알고리즘 기본 버전 최단 경로 알고리즘..
백준 2588번 1) 문제 2) 입력/출력 예제 제출 코드 import java.util.Scanner; import java.util.stream.Stream; public class M2588 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); // 472 int B = sc.nextInt(); // 385 /* 풀이 진행 */ // 1) 입력값 배열로 변경 int[] digitsA = Stream.of(String.valueOf(A).split("")) .mapToInt(Integer::parseInt) .toArray(); int[] digitsB = Stream.of..