#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, a, b, c, d, n;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    cin >> n >> a >> b >> c >> d;
    if ((a - b) * n > (c + d) || (a + b) * n < (c - d))
      cout << "No" << endl;
    else {
      cout << "Yes" << endl;
    }
  }
}
