6 solutions
-
0
#include <stdio.h> bool ai(long xa,long xb,long ya,long yb) { int x=ya/xb; if(ya%xb) x++; if(yb-(x-1)*xa>0) return true; else return false; } int main() { int t; long xa,xb,ya,yb; scanf("%d",&t); while(t--) { scanf("%ld",&xa); scanf("%ld",&xb); scanf("%ld",&ya); scanf("%ld",&yb); if(ai(xa,xb,ya,yb)) printf("YES\n"); else printf("NO\n"); } return 0; }
Information
- ID
- 265
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- # Submissions
- 1125
- Accepted
- 136
- Uploaded By