#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, a, b, c, d;
  cin >> n >> a >> b >> c >> d;
  int mi = n * (a - b);
  int mx = n * (a + b);
  if ((mx >= c + d and mi <= c + d) or (mi <= c - d and mx >= c - d) or
      (mi >= c - d and mx <= c + d))
    cout << "Yes"
         << "\n";
  else
    cout << "No"
         << "\n";
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
}
