#include <bits/stdc++.h>
using namespace std;
int solve() {
  long long n, a, b, c, d;
  cin >> n >> a >> b >> c >> d;
  if (n * a <= c + d && n * a >= c - d) {
    cout << "Yes\n";
    return 0;
  }
  if (n * a > c + d) {
    if (b * n >= a * n - (c + d)) {
      cout << "Yes\n";
      return 0;
    }
  }
  if (n * a < c - d) {
    if (b * n >= (c - d) - a * n) {
      cout << "Yes\n";
      return 0;
    }
  }
  cout << "No\n";
  return 0;
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
