#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int min_grain = a - b;
    int max_grain = a + b;
    int min_sack = c - d;
    int max_sack = c + d;
    if (n * min_grain > max_sack) {
      cout << "No" << endl;
      continue;
    }
    if (n * max_grain < min_sack) {
      cout << "No" << endl;
      continue;
    } else
      cout << "Yes" << endl;
  }
}
