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