#include <bits/stdc++.h>
using namespace std;
const int inf = 2e9;
const long long INF = 8e18;
const int maxn = 5e5 + 5;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int T;
  cin >> T;
  while (T--) {
    int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int mi = a - b, ma = a + b;
    int l = c - d, r = c + d;
    mi *= n, ma *= n;
    bool ok = 0;
    if (mi == l || mi == r || ma == l || ma == r) ok = 1;
    if (mi < l && ma >= l) ok = 1;
    if (mi > l && mi <= r) ok = 1;
    if (ok)
      cout << "Yes" << '\n';
    else
      cout << "No" << '\n';
  }
  return 0;
}
