#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int T;
  cin >> T;
  for (int t = 1; t < T + 1; t++) {
    int n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    if ((c + d) < n * (a - b) || (c - d) > n * (a + b)) {
      cout << "No"
           << "\n";
    } else {
      cout << "Yes"
           << "\n";
    }
  }
}
