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