diff --git a/code_study/Baekjoon/python/2863.py b/code_study/Baekjoon/python/2863.py new file mode 100644 index 0000000..440250c --- /dev/null +++ b/code_study/Baekjoon/python/2863.py @@ -0,0 +1,15 @@ +a, b = map(int, input().split()) +c, d = map(int, input().split()) + +v = [] +v.append(a/c + b/d) +v.append(c/d + a/b) +v.append(d/b + c/a) +v.append(b/a + d/c) + +maxNum = max(v) + +for i in range(4) : + if maxNum == v[i] : + print(i) + break diff --git a/code_study/Baekjoon/swift/11049.swift b/code_study/Baekjoon/swift/11049.swift new file mode 100644 index 0000000..6d7af6c --- /dev/null +++ b/code_study/Baekjoon/swift/11049.swift @@ -0,0 +1,34 @@ +func solve() { + guard let N = Int(readLine() ?? "") else { return } + + var size: [(Int, Int)] = [] + for _ in 0..