diff --git a/code_study/Baekjoon/java/_11943.java b/code_study/Baekjoon/java/_11943.java new file mode 100644 index 0000000..cb80986 --- /dev/null +++ b/code_study/Baekjoon/java/_11943.java @@ -0,0 +1,11 @@ +import java.util.*; + +public class _11943 { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt(), D = sc.nextInt(); + sc.close(); + + System.out.println(Math.min(A+D, B+C)); + } +} \ No newline at end of file diff --git a/code_study/Baekjoon/swift/10844.swift b/code_study/Baekjoon/swift/10844.swift new file mode 100644 index 0000000..5fcad34 --- /dev/null +++ b/code_study/Baekjoon/swift/10844.swift @@ -0,0 +1,25 @@ +let N: Int = Int(readLine()!)! +let MOD: Int = 1000000000 + +var dp: [Int] = Array(repeating: 1, count: 10) +dp[0] = 0 + +for _ in 1..= 0 { + let next_bit_state = bit_state | (1<