import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int t= sc.nextInt(); PrintWriter pw = new PrintWriter(System.out); for (int z = 0; z < t; z++) { int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } Arrays.sort(a); long sum = 0; for (int i = 0; i < n; i++) { sum += a[i]; } if (sum % 3 == 0 && a[n - 1] <= sum / 3) { pw.println("Yes"); } else { pw.println("No"); } } pw.flush(); sc.close(); } }