#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    long long l1 = c - d, l2 = c + d;
    long long mn = (a - b) * n;
    bool valid = false;
    if (mn > l2) {
      cout << "No" << endl;
      continue;
    }
    if (mn < l1) {
      if (l1 > (a + b) * n)
        cout << "No" << endl;
      else
        cout << "Yes" << endl;
      continue;
    }
    cout << "Yes" << endl;
  }
  return 0;
}
