← Home
For problem statement at 0-999/700-799/710-719/715/problemA.txt this is a correct solution, but verifier at 0-999/700-799/710-719/715/verifierA.go ends with All tests passed can you fix the verifier? package main

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

func main() {
	var n int64
	fmt.Scan(&n)
	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

	if n >= 1 {
		fmt.Fprintln(out, 2)
	}
	for k := int64(2); k <= n; k++ {
		fmt.Fprintln(out, k*(k+1)*(k+1)-(k-1))
	}
}