#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 max = c + d;
    int min = c - d;
    int summin = 0;
    int summax = 0;
    summin = n * (a - b);
    summax = n * (a + b);
    if (summax < min)
      cout << "No\n";
    else if (summin > max)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
}
