#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
template <typename T>
void chmax(T &a, const T &b) {
  if (a < b) a = b;
}
template <typename T>
void chmin(T &a, const T &b) {
  if (b < a) a = b;
}
void solve() {
  int t;
  cin >> t;
  for (ll(q) = (1); (q) <= (t); (q)++) {
    ll n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    ll smin = (a - b) * n;
    ll smax = (a + b) * n;
    if (smax < c - d || c + d < smin) {
      cout << "No\n";
    } else {
      cout << "Yes\n";
    }
  }
  return;
}
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  solve();
  return 0;
}
