Avatar
1問目の回答例です let a: Int = Int(readLine()!)! let bc: [Int] = readLine()!.split(separator: " ").map { Int($0)! } let b = bc[0] let c = bc[1] let s: String = readLine()! print(a + b + c, s)