For problem statement at 2000-2999/2000-2099/2040-2049/2047/problemA.txt this is a correct solution, but verifier at 2000-2999/2000-2099/2040-2049/2047/verifierA.go ends with All 84 tests passed. can you fix the verifier? package main
import (
"bufio"
"fmt"
"os"
)
func main() {
in := bufio.NewReader(os.Stdin)
out := bufio.NewWriter(os.Stdout)
defer out.Flush()
const maxSum = 10000
oddSquares := make([]bool, maxSum+1)
for i := 1; i*i <= maxSum; i += 2 {
oddSquares[i*i] = true
}
var t int
fmt.Fscan(in, &t)
for ; t > 0; t-- {
var n int
fmt.Fscan(in, &n)
sum, ans := 0, 0
for i := 0; i < n; i++ {
var x int
fmt.Fscan(in, &x)
sum += x
if oddSquares[sum] {
ans++
}
}
fmt.Fprintln(out, ans)
}
}