func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int t;     cin >> t;     while (t--) {       long long a, b, c, n, sum = 0, Max, Min;       cin >> a >> b >> c >> n;       Max = max(max(a, b), c);       sum = a + b + c;       if (3 * Max - sum > n)         cout <<  NO  << endl;       else {         sum += n;         if (sum % 3 == 0)           cout <<  YES  << endl;         else           cout <<  NO  << endl;       }     }     return 0;   }   