fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int S1, V1, S2, V2;
  6. cin >> S1 >> V1 >> S2 >> V2;
  7.  
  8. if ((double)S1 / V1 < (double)S2 / V2) {
  9. cout << "YES" << endl;
  10. } else {
  11. cout << "NO" << endl;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5288KB
stdin
7 30 9 60
stdout
NO