6 solutions
-
0
#include <stdio.h> int pk(long long Xa,long long Xb,long long Ya,long long Yb) { long long Yayi = (Ya + Xb - 1) / Xb; long long Qiyana = (Yb + Xa - 1) / Xa; return (Yayi <= Qiyana); } int main() { int T; scanf("%d", &T); for (int i = 0; i < T; i++) { long long Xa, Xb, Ya, Yb; scanf("%lld %lld %lld %lld", &Xa, &Xb, &Ya, &Yb); if(pk(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