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