#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  int n, a, b, c, d;
  cin >> t;
  while (t--) {
    cin >> n >> a >> b >> c >> d;
    int total_max = c + d;
    int total_min = c - d;
    int max = a + b;
    int min = a - b;
    int count = 0;
    if (n * max < total_min) {
      cout << "NO" << endl;
    } else if (n * min > total_max) {
      cout << "NO" << endl;
    } else
      cout << "YES" << endl;
  }
  return 0;
}
