#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, a, b, c, d;
  cin >> n >> a >> b >> c >> d;
  bool ok = false;
  if (abs(n * (a + b)) < c - d || abs(n * (a - b)) > c + d) {
    cout << "NO\n";
  } else {
    cout << "YES\n";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
