For problem statement at 1000-1999/1200-1299/1260-1269/1263/problemA.txt this is a correct solution, but verifier at 1000-1999/1200-1299/1260-1269/1263/verifierA.go ends with All tests passed can you fix the verifier? package main
import (
"bufio"
"fmt"
"os"
"sort"
)
func main() {
in := bufio.NewReader(os.Stdin)
out := bufio.NewWriter(os.Stdout)
defer out.Flush()
var t int
fmt.Fscan(in, &t)
for i := 0; i < t; i++ {
a := make([]int, 3)
fmt.Fscan(in, &a[0], &a[1], &a[2])
sort.Ints(a)
ans := a[0] + a[1]
totalHalf := (a[0] + a[1] + a[2]) / 2
if totalHalf < ans {
ans = totalHalf
}
fmt.Fprintln(out, ans)
}
}