白駿-1524歳準備


白駿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")
}