코딩/백준 (JAVA)
백준 10021번: Watering the Fields (Java)
접근 https://www.acmicpc.net/problem/10021 10021번: Watering the Fields Input Details There are 3 fields, at locations (0,2), (5,0), and (4,3). The contractor will only install pipes of cost at least 11. Output Details FJ cannot build a pipe between the fields at (4,3) and (5,0), since its cost would be only 10. He therefore b www.acmicpc.net 최소 신장 트리(MST, Minimum Spanning Tree) 문제였다. 모든 노드들이 연결되어 ..
2022. 6. 25. 23:51
최근댓글