#include <bits/stdc++.h>
using namespace std;
long long mod2 = 1e9 + 7;
long long mod = 998244353;
const long long N = 2e5 + 12;
void solve() {
  long long n, a, b, c, d;
  cin >> n >> a >> b >> c >> d;
  long long l1 = n * (a - b);
  long long r1 = n * (a + b);
  long long l2 = c - d;
  long long r2 = c + d;
  if (l1 > r2 || r1 < l2)
    cout << "No";
  else
    cout << "Yes";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
