#include <bits/stdc++.h>   using namespace std;   int main() {     int t, n, a, b, c, d;     cin >> t;     while (t--) {       cin >> n >> a >> b >> c >> d;       int mi = (a - b) * n, ma = (a + b) * n;       if ((mi > c + d) || (ma < c - d))         cout <<  NO  << endl;       else         cout <<  YES  << endl;     }   }   