← Home
For problem statement at 1000-1999/1800-1899/1810-1819/1815/problemA.txt this is a correct solution, but verifier at 1000-1999/1800-1899/1810-1819/1815/verifierA.go ends with All tests passed can you fix the verifier? ```go
package main

import "fmt"

func main() {
	var t int
	fmt.Scan(&t)
	for _ = range make([]int, t) {
		var n int
		fmt.Scan(&n)
		a := make([]int64, n)
		for i := range a {
			fmt.Scan(&a[i])
		}
		if n%2 == 1 {
			fmt.Println("YES")
			continue
		}
		var s int64 = 0
		for i := 0; i < n; i++ {
			if i%2 == 0 {
				s += a[i]
			} else {
				s -= a[i]
			}
		}
		if s <= 0 {
			fmt.Println("YES")
		} else {
			fmt.Println("NO")
		}
	}
}
```