π¬Β λ¬Έμ
https://app.codility.com/programmers/trainings/3/tennis_tournament/
π¬Β νμ΄
public func solution(_ P : Int, _ C : Int) -> Int {
if P / 2 >= C {
return C
} else {
return P / 2
}
}
νκ°ν : https://app.codility.com/demo/results/training9KQ9FY-ACV/