#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int tt;
  cin >> tt;
  while (tt--) {
    int a, b, c, d, n;
    cin >> n >> a >> b >> c >> d;
    int mn = n * (a - b), mx = n * (a + b);
    bool flag = !(mn > c + d || mx < c - d);
    cout << (flag ? "Yes" : "No") << "\n";
  }
  return 0;
}
