#include <bits/stdc++.h>
using namespace std;
int t, n, ex, k;
int a[105];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n >> ex >> k;
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 0; i < n - 1 && ex >= 0; i++) {
      if (a[i + 1] <= k)
        ex += a[i];
      else
        ex += a[i] - a[i + 1] + k;
    }
    if (ex >= 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
