#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, a, b, c, d;
  cin >> t;
  while (t--) {
    cin >> n >> a >> b >> c >> d;
    vector<int> minmax = {(a - b) * n, (a + b) * n, c - d, c + d};
    bool case1 = minmax[1] < minmax[2];
    bool case2 = minmax[0] > minmax[3];
    if (case1 || case2) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
  }
}
