#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const double pi = acos(-1);
const int M = 1e5 + 10;
const int inf = 2e9 + 10;
const int mod = 998244353;
int t, a, b, c, d, n;
int main() {
  cin >> t;
  while (t--) {
    cin >> n >> a >> b >> c >> d;
    if (n * (a - b) > c + d || n * (a + b) < c - d)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
}
