#include <bits/stdc++.h>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
using std::make_pair;
using std::pair;
long long a[200];
int main() {
  std::ios::sync_with_stdio(false);
  cout.tie(0);
  int T;
  cin >> T;
  while (T--) {
    long long n, m, k;
    cin >> n >> m >> k;
    for (int i = (1); i <= (n); ++i) cin >> a[i];
    bool flag = 1;
    for (int i = (2); i <= (n); ++i) {
      m += a[i - 1];
      if (a[i] <= m + k) {
        m -= std::max(0LL, a[i] - k);
      } else {
        flag = 0;
        break;
      }
    }
    cout << (flag ? "YES\n" : "NO\n");
  }
  return 0;
}
