For problem statement at 1000-1999/1200-1299/1250-1259/1257/problemB.txt this is a correct solution, but verifier at 1000-1999/1200-1299/1250-1259/1257/verifierB.go ends with All tests passed can you fix the verifier? package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
scanner := bufio.NewScanner(os.Stdin)
scanner.Split(bufio.ScanWords)
if !scanner.Scan() {
return
}
t, _ := strconv.Atoi(scanner.Text())
writer := bufio.NewWriter(os.Stdout)
defer writer.Flush()
for i := 0; i < t; i++ {
scanner.Scan()
x, _ := strconv.Atoi(scanner.Text())
scanner.Scan()
y, _ := strconv.Atoi(scanner.Text())
if x >= y {
fmt.Fprintln(writer, "YES")
} else {
if x == 1 {
fmt.Fprintln(writer, "NO")
} else if x == 2 || x == 3 {
if y <= 3 {
fmt.Fprintln(writer, "YES")
} else {
fmt.Fprintln(writer, "NO")
}
} else {
fmt.Fprintln(writer, "YES")
}
}
}
}