#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int x = 0;
    if (((c + d) < n * (a - b)) || ((c - d) > n * (a + b)))
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
  return 0;
}
