10 lines
133 B
Go
10 lines
133 B
Go
|
package q05
|
||
|
|
||
|
func solveP1(nums []int) int {
|
||
|
var sum int
|
||
|
for _, v := range nums {
|
||
|
sum += int(float64(v)/2.5 - 2)
|
||
|
}
|
||
|
return sum
|
||
|
}
|