fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int S1, V1, S2, V2;
  6. cin >> S1 >> V1 >> S2 >> V2;
  7.  
  8. // So sánh thời gian: thời gian = quãng đường / vận tốc
  9. if ((double)S1 / V1 < (double)S2 / V2) {
  10. cout << "YES" << endl;
  11. } else {
  12. cout << "NO" << endl;
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5284KB
stdin
7 30 9 60
stdout
NO