← Home
For problem statement at 1000-1999/1400-1499/1420-1429/1422/problemA.txt this is a correct solution, but verifier at 1000-1999/1400-1499/1420-1429/1422/verifierA.go ends with All 100 tests passed. can you fix the verifier? package main

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

func main() {
	in := bufio.NewReaderSize(os.Stdin, 1<<20)
	out := bufio.NewWriterSize(os.Stdout, 1<<20)
	defer out.Flush()

	var t int
	fmt.Fscan(in, &t)
	for i := 0; i < t; i++ {
		var a, b, c int64
		fmt.Fscan(in, &a, &b, &c)
		fmt.Fprintln(out, a+b+c-1)
	}
}