hackathon/question/q05/part1.go

10 lines
133 B
Go

2022-04-29 06:56:26 +07:00
package q05
func solveP1(nums []int) int {
var sum int
for _, v := range nums {
sum += int(float64(v)/2.5 - 2)
}
return sum
}