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