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