← Home
For problem statement at 1000-1999/1900-1999/1960-1969/1968/problemC.txt this is a correct solution, but verifier at 1000-1999/1900-1999/1960-1969/1968/verifierC.go ends with case 1 failed
expected: 501 668 862 957 1062 1414 1525 1750 1915 2207
got: 1000 1167 1361 1456 1561 1913 2024 2249 2414 2706
input:
1
10
167 194 95 105 352 111 225 165 292
exit status 1 can you fix the verifier? ```go
package main

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

func main() {
	in := bufio.NewReader(os.Stdin)
	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

	var t int
	fmt.Fscan(in, &t)

	for i := 0; i < t; i++ {
		var n int
		fmt.Fscan(in, &n)

		curr := 1000
		fmt.Fprint(out, curr)

		for j := 0; j < n-1; j++ {
			var x int
			fmt.Fscan(in, &x)
			curr += x
			fmt.Fprint(out, " ", curr)
		}
		fmt.Fprintln(out)
	}
}
```