#include using namespace std; int main(){ int tt;scanf("%d",&tt); for (;tt--;){ int n,mx,mn,avg;scanf("%d%d%d%d",&n,&mx,&mn,&avg); if (mx= avg*n && mn*(n-1)+mx <= avg*n) puts("yes"); else puts("no"); } }