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