6 solutions
-
1
#include<iostream> using namespace std; int main() { int T; cin >> T; while (T--) { int Xa, Ya, Xb, Yb, n; cin >> Xa >> Xb >> Ya >> Yb; if (Yb % Xa == 0) { n = Yb / Xa; } else n = Yb / Xa+1; if (n * Xb >= Ya) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
Information
- ID
- 265
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- # Submissions
- 1125
- Accepted
- 136
- Uploaded By