voidsolve() { memset(dp, 0x3f, sizeof dp); int n, f, a, b; cin >> n >> f >> a >> b; for (int i = 1; i <= n; i ++) cin >> w[i]; for (int i = 1; i <= n; i ++) dp[i] = min(dp[i - 1] + b, dp[i - 1] + a * (w[i] - w[i - 1])); if (dp[n] >= f) cout << "NO\n"; else cout << "YES\n"; }
signedmain() { // ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int T; cin >> T; while (T --) solve(); return0; }