#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;
    if (n * (a + b) < c - d || c + d < n * (a - b))
      cout << "No\n";
    else
      cout << "Yes\n";
  }
}
