#include <bits/stdc++.h>
using namespace std;
inline void get_arr(vector<int> &arr, int n) {
  int a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    arr.push_back(a);
  }
}
inline void print_arr(vector<int> &arr, int n) {
  for (int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << "\n";
  ;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int max_grain = b + a;
    int min_grain = a - b;
    int max_pack = c + d;
    int min_pack = c - d;
    if (max_grain * n < min_pack || min_grain * n > max_pack)
      cout << "NO"
           << "\n";
    else
      cout << "YES"
           << "\n";
    ;
  }
  return (0);
}
