← Home
For problem statement at 0-999/200-299/260-269/268/problemB.txt this is a correct solution, but verifier at 0-999/200-299/260-269/268/verifierB.go ends with case 1 failed: expected 535095 got 184252079
input:
1034
exit status 1 can you fix the verifier? package main

import "fmt"

func main() {
	var n int64
	if _, err := fmt.Scan(&n); err == nil {
		fmt.Println(n + (n-1)*n*(n+1)/6)
	}
}