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