diff --git "a/WEEK11/\353\260\261\354\244\200_11404_\355\224\214\353\241\234\354\235\264\353\223\234/raven.swift" "b/WEEK11/\353\260\261\354\244\200_11404_\355\224\214\353\241\234\354\235\264\353\223\234/raven.swift" new file mode 100644 index 0000000..cb0066b --- /dev/null +++ "b/WEEK11/\353\260\261\354\244\200_11404_\355\224\214\353\241\234\354\235\264\353\223\234/raven.swift" @@ -0,0 +1,42 @@ +let n = Int(readLine()!)! +let m = Int(readLine()!)! +var graph = Array(repeating:Array(repeating: Int.max, count: n + 1), count: n + 1) + +for _ in 0.. cost { graph[start][end] = cost } +} + +// for i in 1.. cost { + graph[i][j] = cost + } + } + } + } +} + +// 만약, i에서 j로 갈 수 없는 경우에는 그 자리에 0을 출력한다. +for i in 1..