#include #include #include #include #include #include #include using namespace std; #define int long long #define endl "\n" #define debug(x) "\e[1;31m"<<#x<<"="<<(x)<<"\e[0m" templateostream & operator<<(ostream &out,vector &v){ for(T i:v)out<istream & operator>>(istream &in,vector &v){ for(T &i:v)in>>i; return in; } void init(); void task(); int32_t main(){ int t=1; init(); cin>>t; while(t--)task(); } void init(){} void task(){ int n,M,m,avg; cin>>n>>M>>m>>avg; if(MM || avg=avg*n && avg*n>=M+m*(n-1)) cout<<"yes"<