백준 1524 세준세비
문제 : https://www.acmicpc.net/problem/1524
Swift :
let t = Int(readLine()!)!
for _ in 0..<t{
readLine()
readLine()
let s = readLine()!.split(separator: " ").map{Int($0)!}.max()!
let b = readLine()!.split(separator: " ").map{Int($0)!}.max()!
print(s<b ? "B":"S")
}