#include <bits/stdc++.h>
using ll = long long;
using namespace std;
namespace Debug {
template <class A, class B>
ostream &operator<<(ostream &out, pair<A, B> &p) {
  out << "(" << p.first << ", " << p.second << ")";
  return out;
}
template <class T>
ostream &operator<<(ostream &out, vector<T> &v) {
  out << "{";
  string sep;
  for (T el : v) out << sep << el, sep = ", ";
  out << "}";
  return out;
}
template <class T>
ostream &operator<<(ostream &out, set<T> &st) {
  out << '(';
  string sep = "";
  for (auto el : st) out << sep << el, sep = ", ";
  out << ')';
  return out;
}
void debug_out() { cerr << endl; }
template <class Head, class... Tail>
void debug_out(Head head, Tail... tail) {
  cerr << ' ' << head;
  debug_out(tail...);
}
}  // namespace Debug
using namespace Debug;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    if (max((a - b) * n, c - d) <= min((a + b) * n, c + d))
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
