From 8ecf0fdce4b2f1134b3d1e22b9f977aa4fdda419 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Tue, 3 Mar 2026 17:36:42 +0900 Subject: [PATCH] baekjoon 20260303 --- code_study/Baekjoon/swift/2857.swift | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 code_study/Baekjoon/swift/2857.swift 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