← Home
For problem statement at 0-999/0-99/20-29/21/problemB.txt this is a correct solution, but verifier at 0-999/0-99/20-29/21/verifierB.go ends with All tests passed can you fix the verifier?  ```go
package main

import "fmt"

func main() {
	var a1, b1, c1, a2, b2, c2 int
	fmt.Scan(&a1, &b1, &c1)
	fmt.Scan(&a2, &b2, &c2)
	
	if a1*b2 != a2*b1 {
		fmt.Println(1)
	} else {
		if a1*c2 == a2*c1 && b1*c2 == b2*c1 {
			fmt.Println(-1)
		} else {
			fmt.Println(0)
		}
	}
}
```