← Home
For problem statement at 2000-2999/2100-2199/2120-2129/2122/problemA.txt this is a correct solution, but verifier at 2000-2999/2100-2199/2120-2129/2122/verifierA.go ends with reference runtime error: exit status 1
input:
68
1 1
1 2
1 3
1 4
2 1
2 2
2 3
2 4
3 1
3 2
3 3
3 4
4 1
4 2
4 3
4 4
3 3
1 2
69 67
80 68
33 39
53 28
53 96
94 10
24 47
29 54
24 38
42 32
82 36
27 29
41 3
86 55
99 99
64 37
64 19
85 59
41 89
92 48
58 5
64 82
50 93
26 95
11 38
37 35
1 75
9 11
97 54
14 27
48 53
54 14
45 94
51 33
12 86
77 21
54 80
69 7
31 98
28 38
13 89
71 24
46 26
94 16
79 98
57 56
57 96
85 35
91 25
65 27


exit status 1 can you fix the verifier? ```go
package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	in := bufio.NewReader(os.Stdin)
	var t int
	fmt.Fscan(in, &t)
	for i := 0; i < t; i++ {
		var n, m int
		fmt.Fscan(in, &n, &m)
		if n == 1 || m == 1 || (n == 2 && m == 2) {
			fmt.Println("NO")
		} else {
			fmt.Println("YES")
		}
	}
}
```