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