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