For problem statement at 0-999/400-499/430-439/433/problemA.txt this is a correct solution, but verifier at 0-999/400-499/430-439/433/verifierA.go ends with All 100 tests passed. can you fix the verifier? package main
import (
"bufio"
"fmt"
"os"
)
func main() {
in := bufio.NewReader(os.Stdin)
out := bufio.NewWriter(os.Stdout)
defer out.Flush()
var n int
if _, err := fmt.Fscan(in, &n); err != nil {
return
}
a, b := 0, 0
for i := 0; i < n; i++ {
var w int
fmt.Fscan(in, &w)
if w == 100 {
a++
} else if w == 200 {
b++
}
}
if a%2 == 1 {
fmt.Fprintln(out, "NO")
} else if a == 0 && b%2 == 1 {
fmt.Fprintln(out, "NO")
} else {
fmt.Fprintln(out, "YES")
}
}