#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 low = (a - b) * n;
    int high = (a + b) * n;
    if (low > (c + d) || high < (c - d))
      cout << "No";
    else
      cout << "Yes";
    cout << endl;
  }
  return 0;
}
