← Home
For problem statement at 2000-2999/2000-2099/2000-2009/2007/problemA.txt this is a correct solution, but verifier at 2000-2999/2000-2099/2000-2009/2007/verifierA.go ends with wrong answer on test 1
input:
8
1 3
3 7
10 21
12 85
1 60
2 15
10 26
1 1000

expected:
0
0
0
0
0
0
0
0
got:
1
1
3
18
15
3
4
250
exit status 1 can you fix the verifier?  ```go
package main

import "fmt"

func main() {
	var t int
	fmt.Scan(&t)
	for i := 0; i < t; i++ {
		var l, r int
		fmt.Scan(&l, &r)
		n := r - l + 1
		odd := (r+1)/2 - l/2
		ans := n / 3
		if odd/2 < ans {
			ans = odd / 2
		}
		fmt.Println(ans)
	}
}
```