#include <bits/stdc++.h>
using namespace std;
int main() {
  int s;
  cin >> s;
  while (s) {
    int n, a, b, c, d;
    bool status = true;
    cin >> n >> a >> b >> c >> d;
    int rangem = (a - b) * n, rangeM = (a + b) * n;
    if (((c + d) < rangem) || (c - d) > rangeM) status = false;
    if (status)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
    s--;
  }
  return 0;
}
