백준 - 1524 세준세비

AekT·2021년 11월 8일
post-thumbnail

백준 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")
}
profile
으악

0개의 댓글