#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long a, b, c, d, i, j, n;
    cin >> n >> a >> b >> c >> d;
    if (n * (a - b) > c + d || n * (a + b) < c - d) {
      printf("No\n");
    } else {
      printf("Yes\n");
    }
  }
}
