#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    long long int maxTotal = c + d;
    long long int minTotal = c - d;
    long long int maxCal = n * (a + b);
    long long int minCal = n * (a - b);
    if (minCal > maxTotal || maxCal < minTotal)
      cout << "NO" << '\n';
    else
      cout << "YES" << '\n';
  }
  return 0;
}
