백준 1916 최소비용 구하기 - JAVA
·
알고리즘/백준
문제 링크https://www.acmicpc.net/problem/1916 문제 설명 입출력 코드123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475import java.util.*;import java.io.*; class Node implements ComparableNode> {    int end;    int weight;        Node(int end, int weight) {        this.end = end;        this.weight = weight;    }        ..