#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 h = a - b;
    int h1 = a + b;
    int k = c - d;
    int k1 = c + d;
    if (n * h1 >= k && n * h <= k1)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
