← Home
For problem statement at 1000-1999/1700-1799/1740-1749/1742/problemA.txt this is a correct solution, but verifier at 1000-1999/1700-1799/1740-1749/1742/verifierA.go ends with All test cases passed! can you fix the verifier? package main

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

func main() {
	in := bufio.NewReader(os.Stdin)
	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

	var t int
	if _, err := fmt.Fscan(in, &t); err != nil {
		return
	}
	for i := 0; i < t; i++ {
		var a, b, c int
		fmt.Fscan(in, &a, &b, &c)
		if a+b == c || a+c == b || b+c == a {
			fmt.Fprintln(out, "YES")
		} else {
			fmt.Fprintln(out, "NO")
		}
	}
}