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