2025-09-06 18:16:39 +09:00

7 lines
119 B
Swift

var result: Int = 0
for v in 3...5 {
if let n = Int(readLine() ?? "") {
result += n*v
}
}
print(result)