#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  for (long long i = 0; i < t; ++i) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    if (n * (a - b) > c + d)
      cout << "NO" << endl;
    else if (n * (a + b) < c - d)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
