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