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