#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    long long int max1, max2, min1, min2;
    min1 = (a - b) * n;
    max1 = (a + b) * n;
    min2 = c - d;
    max2 = c + d;
    if (min2 < min1 && max2 < min1)
      cout << "No" << endl;
    else if (min2 > max1 && max2 > max1)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
