#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int T = 0;
  cin >> T;
  while (T--) {
    long long int n = 0, a = 0, b = 0, c = 0, d = 0;
    cin >> n >> a >> b >> c >> d;
    long long int mi = n * (a - b);
    long long int ma = n * (a + b);
    long long int di = c - d;
    long long int s = c + d;
    if (s < mi || di > ma)
      cout << "No";
    else
      cout << "Yes";
    cout << "\n";
    ;
  }
  return 0;
}
