← Home
For problem statement at 1000-1999/1700-1799/1700-1709/1701/problemA.txt this is a correct solution, but verifier at 1000-1999/1700-1799/1700-1709/1701/verifierA.go ends with All tests passed can you fix the verifier? ```go
package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Scan()
	t, _ := strconv.Atoi(scanner.Text())
	for i := 0; i < t; i++ {
		sum := 0
		for j := 0; j < 2; j++ {
			scanner.Scan()
			fields := strings.Fields(scanner.Text())
			for _, f := range fields {
				v, _ := strconv.Atoi(f)
				sum += v
			}
		}
		if sum == 0 {
			fmt.Println(0)
		} else if sum == 4 {
			fmt.Println(2)
		} else {
			fmt.Println(1)
		}
	}
}
```