#include <bits/stdc++.h>
using namespace std;
int main() {
  long int t;
  scanf("%ld", &t);
  while (t--) {
    long int n, a, b, c, d;
    scanf("%ld %ld %ld %ld %ld", &n, &a, &b, &c, &d);
    bool flag = false;
    if (n * (a - b) > c + d || n * (a + b) < c - d)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
  return 0;
}
