← Home
For problem statement at 1000-1999/1300-1399/1350-1359/1353/problemC.txt this is a correct solution, but verifier at 1000-1999/1300-1399/1350-1359/1353/verifierC.go ends with test 2 failed: expected 8 got 2

exit status 1 can you fix the verifier? ```go
package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	in := bufio.NewReaderSize(os.Stdin, 1<<20)
	out := bufio.NewWriterSize(os.Stdout, 1<<20)
	defer out.Flush()

	var t int
	fmt.Fscan(in, &t)
	for ; t > 0; t-- {
		var n int64
		fmt.Fscan(in, &n)
		k := n / 2
		ans := k * (k + 1) * (4*k - 1) / 3
		fmt.Fprintln(out, ans)
	}
}
```