Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t;
- scanf("%d", &t);
- while(t--)
- {
- long long r, b, d;
- scanf("%lld %lld %lld", &r, &b, &d);
- if(r > b)
- {
- if(r > b*(d+1)) printf("NO\n");
- else printf("YES\n");
- }
- else
- {
- if(b > r*(d+1)) printf("NO\n");
- else printf("YES\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement