#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int t = 0;
  int n = 0, a = 0, b = 0, c = 0, d = 0;
  int flag = 0;
  int flag2 = 0;
  cin >> t;
  while (t--) {
    cin >> n;
    cin >> a >> b >> c >> d;
    flag = n * (a - b);
    flag2 = n * (a + b);
    if (flag > c + d || flag2 < c - d) {
      cout << "No" << '\n';
    } else {
      cout << "Yes" << '\n';
    }
  }
  return 0;
}
