알고리즘
[백준 11021][Swift] 두 정수 A와 B를 입력받은 다음, A+B를 출력 -7
moving
2022. 3. 31. 16:52
728x90
코드
let inputT = Int(readLine()!)!
for i in 1...inputT {
let inputNum = (readLine()?.split(separator: " ").map { Int($0)! })!
print("Case #\(i): \(inputNum[0] + inputNum[1])")
}
https://www.acmicpc.net/problem/11021