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