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