#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    bool p = true;
    long long MAX = c + d, MIN = c - d;
    long long ming = (a - b) * n, maxg = (a + b) * n;
    if (MAX < ming || MIN > maxg) p = false;
    if (p)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
