ЕС
Size: a a a
ЕС
SK
ЕС
Foundation
print("Input two numbers:")
guard
let inputArray = readLine()?.split(separator: " ")
else {
fatalError("Incorrect input")
}
let numbers = inputArray.compactMap({ Int($0) })
guard numbers.count == 2
else {
fatalError("Incorrect input")
}
print("\(numbers[0]) + \(numbers[1]) = \(numbers.reduce(0, { $0 + $1 }))")
SK
Foundation
print("Input two numbers:")
guard
let inputArray = readLine()?.split(separator: " ")
else {
fatalError("Incorrect input")
}
let numbers = inputArray.compactMap({ Int($0) })
guard numbers.count == 2
else {
fatalError("Incorrect input")
}
print("\(numbers[0]) + \(numbers[1]) = \(numbers.reduce(0, { $0 + $1 }))")
ЕС
let numbers = readLine()?.split(separator: " ").compactMap({ Int($0) }), numbers.count == 2
else {
fatalError("Incorrect input")
}
print("\(numbers[0]) + \(numbers[1]) = \(numbers.reduce(0, { $0 + $1 }))")
DM
R
В
R
В
В
R
RT
performBatchUpdates
и вижу, что там вызывается метод insertRows(at indexPaths: [IndexPath]...)
с конкретными индексамиRowAnimation.left
A
В
EE
DK
EE
DK
EE