← Home
For problem statement at 1000-1999/1100-1199/1130-1139/1132/problemA.txt this is a correct solution, but verifier at 1000-1999/1100-1199/1130-1139/1132/verifierA.go ends with All 100 tests passed can you fix the verifier? package main

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

func main() {
	in := bufio.NewReader(os.Stdin)
	var cnt1, cnt2, cnt3, cnt4 int64
	fmt.Fscan(in, &cnt1, &cnt2, &cnt3, &cnt4)

	if cnt1 == cnt4 && (cnt1 > 0 || cnt3 == 0) {
		fmt.Print(1)
	} else {
		fmt.Print(0)
	}
}