#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int T, n, a, b, c, d;
int main() {
  cin >> T;
  while (T--) {
    scanf("%d%d%d%d%d", &n, &a, &b, &c, &d);
    int l = (a - b) * n, r = (a + b) * n;
    int L = c - d, R = c + d;
    if (l >= L && l <= R || r >= L && r <= R || L >= l && L <= r ||
        R >= l && R <= r)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
