For problem statement at 1000-1999/1200-1299/1240-1249/1248/problemA.txt this is a correct solution, but verifier at 1000-1999/1200-1299/1240-1249/1248/verifierA.go ends with All tests passed can you fix the verifier? package main
import (
"fmt"
"io"
"os"
)
func main() {
buf, _ := io.ReadAll(os.Stdin)
pos := 0
nextInt := func() int {
for pos < len(buf) && buf[pos] <= ' ' {
pos++
}
if pos >= len(buf) {
return 0
}
res := 0
for pos < len(buf) && buf[pos] > ' ' {
res = res*10 + int(buf[pos]-'0')
pos++
}
return res
}
t := nextInt()
for i := 0; i < t; i++ {
n := nextInt()
var ep, op int64
for j := 0; j < n; j++ {
p := nextInt()
if p%2 == 0 {
ep++
} else {
op++
}
}
m := nextInt()
var eq, oq int64
for j := 0; j < m; j++ {
q := nextInt()
if q%2 == 0 {
eq++
} else {
oq++
}
}
fmt.Println(ep*eq + op*oq)
}
}