https://www.acmicpc.net/problem/2887시간 1초, 메모리 128MBinput :N (1 ≤ N ≤ 100,000)x y z (-109 ≤ x, y, z ≤ 109)output : 첫째 줄에 모든 행성을 터널로 연결하는데 필요한 최소
https://www.acmicpc.net/problem/1647시간 2초, 메모리 256MBinput :N M (2 <= N <= 100,000)(1 <= M <= 1,000,000)A B C (1 ≤ C ≤ 1,000)output :