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