diff --git a/code_study/Baekjoon/python/16486.py b/code_study/Baekjoon/python/16486.py new file mode 100644 index 0000000..ef3e0d6 --- /dev/null +++ b/code_study/Baekjoon/python/16486.py @@ -0,0 +1 @@ +print((lambda a, b : 2*(a + b*3.141592))(int(input()), int(input()))) \ No newline at end of file diff --git a/code_study/Baekjoon/swift/2098.swift b/code_study/Baekjoon/swift/2098.swift new file mode 100644 index 0000000..6b5cf92 --- /dev/null +++ b/code_study/Baekjoon/swift/2098.swift @@ -0,0 +1,40 @@ +func main() -> Int { + guard let N = Int(readLine() ?? "") else { return -1 } + + var W: [[Int]] = [] + for _ in 0.. Int { + if visit == (1 << N - 1) { + if W[curr][0] == 0 { + return INF + } + return W[curr][0] + } + + if dp[curr][visit] == -1 { + dp[curr][visit] = INF + + for nxt in 0..