3379, 3650

This commit is contained in:
2026-02-06 02:01:18 +08:00
parent 06508ed118
commit 68a402077a
2 changed files with 29 additions and 0 deletions

11
26/01/go/3650.go Normal file
View File

@@ -0,0 +1,11 @@
package A
func minCost(n int, edges [][]int) int {
edgeM := make([][]int, n)
for i := 0; i < n; i++ {
edgeM[i] = make([]int, n)
}
for _, e := range edges {
edgeM[e[0]][e[1]] = e[2]
}
}