package main
import (
“fmt”
)
func main() {
var n, k, t, i, count int
fmt.Scanln(&n, &k)
for i = 0; i < n; i++ {
fmt.Scanln(&t)
if t % k == 0 {
count++
}
}
fmt.Println(count)
}
Why is this simple linear efficient code exceeding the 8 second time limit?