← Home
For problem statement at 1000-1999/1400-1499/1440-1449/1445/problemB.txt this is a correct solution, but verifier at 1000-1999/1400-1499/1440-1449/1445/verifierB.go ends with All tests passed can you fix the verifier? package main

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

func main() {
	in := bufio.NewReaderSize(os.Stdin, 1<<20)
	var t int
	fmt.Fscan(in, &t)
	var out bytes.Buffer
	for i := 0; i < t; i++ {
		var a, b, c, d int
		fmt.Fscan(in, &a, &b, &c, &d)
		ans := a + b
		if c+d > ans {
			ans = c + d
		}
		fmt.Fprintln(&out, ans)
	}
	fmt.Print(out.String())
}