#include <bits/stdc++.h>
using namespace std;
bool verifica(int n, int c, int d) {
  if (n >= (c - d) && n <= (c + d)) return true;
  return false;
}
int main() {
  int t;
  int n, a, b, c, d;
  cin >> t;
  while (t--) {
    cin >> n >> a >> b >> c >> d;
    int r1 = (a - b) * n;
    int r2 = (a + b) * n;
    int r3 = c - d;
    int r4 = c + d;
    if (r1 <= r4 && r4 <= r2 || r1 <= r3 && r3 <= r2 || r3 <= r1 && r2 <= r4 ||
        r1 <= r3 && r4 <= r2) {
      cout << "Yes" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
