#include <bits/stdc++.h>
using namespace std;
int main() {
  long long loop = 0, t, n, a, b, c, d;
  scanf("%lld", &t);
  while (t--) {
    loop++;
    scanf("%lld%lld%lld%lld%lld", &n, &a, &b, &c, &d);
    if (n * (a - b) > c + d || n * (a + b) < c - d)
      printf("No\n");
    else
      printf("Yes\n");
  }
}
