package main import ( "fmt" ) func max(a, b int) int { if a < b { return b } return a } func main() { var T int fmt.Scan(&T) for i := 0; i < T; i++ { var N int fmt.Scan(&N) A := make([]int, N) maxA := 0 sum := 0 for i := 0; i < N; i++ { fmt.Scan(&A[i]) sum += A[i] maxA = max(maxA, A[i]) } if sum%3 != 0 || sum/3 < maxA { fmt.Println("No") continue } fmt.Println("Yes") } }