#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    long long e = a + b;
    long long f = c + d;
    long long g = a - b;
    long long h = c - d;
    long long s = n * e, s1 = n * g;
    if (s >= h && s1 <= f) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
