#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int grams_add = n * (a + b);
    int grams_sub = n * (a - b);
    int gram_diff = grams_add - grams_sub;
    int wt_add = c + d;
    int wt_sub = c - d;
    int wt_diff = wt_add = wt_sub;
    if ((n * (a - b)) <= (c + d) && (n * (a + b)) >= (c - d)) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
