baekjoon 20260303
This commit is contained in:
parent
b0c8afb959
commit
8ecf0fdce4
7
code_study/Baekjoon/swift/2857.swift
Normal file
7
code_study/Baekjoon/swift/2857.swift
Normal file
@ -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: " "))
|
||||
Loading…
x
Reference in New Issue
Block a user