#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int mn = (a - b) * n;
    int mx = (a + b) * n;
    if (c - d > mx || c + d < mn)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
  return 0;
}
