#include <bits/stdc++.h>
using namespace std;
bool solve(int N, int a, int b, int c, int d) {
  int mn = (a - b) * N;
  int mx = (a + b) * N;
  if (mx < c - d || mn > c + d) return false;
  return true;
}
int main(int argc, char* argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int TC;
  cin >> TC;
  for (int tc = (1), _b = (TC); tc <= _b; ++tc) {
    int N;
    int a, b, c, d;
    cin >> N >> a >> b >> c >> d;
    bool res = solve(N, a, b, c, d);
    cout << (res ? "Yes" : "No") << '\n';
  }
  return 0;
}
