#include <bits/stdc++.h>
int main() {
  int t;
  std::cin >> t;
  while (t--) {
    int n, a, b, c, d;
    std::cin >> n >> a >> b >> c >> d;
    if (n * (a + b) < (c - d) || (c + d) < n * (a - b))
      std::cout << "No" << std::endl;
    else
      std::cout << "Yes" << std::endl;
  }
}
