#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = double;
using pll = pair<ll, ll>;
const int MOD = 1e9 + 7, INF = INT_MAX, N = 1e5 + 10;
int main() {
  ll tst;
  cin >> tst;
  while (tst--) {
    ll n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    if ((n * (a + b) >= (c - d)) && (n * (a - b) <= (c + d))) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
}
