diff --git a/code_study/Baekjoon/swift/2857.swift b/code_study/Baekjoon/swift/2857.swift new file mode 100644 index 0000000..011e7c3 --- /dev/null +++ b/code_study/Baekjoon/swift/2857.swift @@ -0,0 +1,7 @@ +import Foundation + +let ans = (1...5).compactMap { i in + return (readLine()?.contains("FBI") == true) ? String(i) : nil +} + +print(ans.isEmpty ? "HE GOT AWAY!" : ans.joined(separator: " ")) \ No newline at end of file