For problem statement at 1000-1999/1900-1999/1990-1999/1999/problemG1.txt this is a correct solution, but verifier at 1000-1999/1900-1999/1990-1999/1999/verifierG1.go ends with target output invalid on test 1: expected 1 values, got 32
output:
? 1 500
? 1 251
? 1 126
? 1 64
? 1 33
? 1 17
? 1 9
? 1 5
? 1 3
? 1 2
! 2
exit status 1 can you fix the verifier? ```go
package main
import (
"fmt"
"os"
)
func main() {
var t int
fmt.Scan(&t)
for test := 0; test < t; test++ {
low := 2
high := 999
for low < high {
mid := (low + high) / 2
fmt.Printf("? 1 %d\n", mid)
os.Stdout.Sync()
var resp int
fmt.Scan(&resp)
if resp == -1 {
os.Exit(0)
}
if resp == mid {
low = mid + 1
} else {
high = mid
}
}
fmt.Printf("! %d\n", low)
os.Stdout.Sync()
}
}
```