#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, a, b, c, d;
  cin >> t;
  while (t--) {
    cin >> n >> a >> b >> c >> d;
    int rice_left = a - b;
    int rice_right = a + b;
    int packeg_left = c - d;
    int packeg_right = c + d;
    rice_left *= n;
    rice_right *= n;
    if (rice_left > packeg_right || rice_right < packeg_left)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
