For problem statement at 2000-2999/2100-2199/2110-2119/2119/problemA.txt this is a correct solution, but verifier at 2000-2999/2100-2199/2110-2119/2119/verifierA.go ends with candidate mismatch on test 1 (samples)
input:
7
1 4 1 2
1 5 2 1
3 2 2 1
1 3 2 1
2 1 1 2
3 1 1 2
1 100 10000000 10000000
output:
3
6
1
3
-1
-1
990000000
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 a, b, x, y int
fmt.Fscan(in, &a, &b, &x, &y)
if a == b {
fmt.Fprintln(out, 0)
continue
}
if a > b {
if a%2 != 0 && b == a-1 {
fmt.Fprintln(out, y)
} else {
fmt.Fprintln(out, -1)
}
} else {
ans := 0
for k := a; k < b; k++ {
if k%2 == 0 {
if x < y {
ans += x
} else {
ans += y
}
} else {
ans += x
}
}
fmt.Fprintln(out, ans)
}
}
}
```