#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    int n, a, b, d, m, k, p, q, s, c, i, j;
    cin >> n >> a >> b >> c >> d;
    p = c - d;
    q = c + d;
    m = a - b;
    k = a + b;
    m *= n;
    k *= n;
    if (k < p || m > q)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
  return 0;
}
