#include using namespace std; void solve(){ using ll=long long; ll n,p,k; cin>>n>>p>>k; bool ans=false; { ll i=k/p; if (5*i<=n&&p*i==k) ans=true; } { ll i=(k-(p-1))/p; if (5*(i+1)<=n&&p*i+(p-1)==k) ans=true; } if (ans) cout<<"Yes\n"; else cout<<"No\n"; } int main(){ int t; cin>>t; while (t--) solve(); }