#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, d, n;
    cin >> n >> a >> b >> c >> d;
    int aa = a - b;
    int bb = a + b;
    int cc = c - d;
    int dd = c + d;
    if (n * aa <= dd && bb * n >= cc) {
      cout << "YES"
           << "\n";
    } else
      cout << "NO"
           << "\n";
  }
}
