fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. // cout << fixed << setprecision(9);
  8.  
  9. double a, b, c, d;
  10. cin >> a >> b >> c >> d;
  11. cout << ((b * log(a) > d * log(c)) ? "YES" : "NO");
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5320KB
stdin
3 2 5 4
stdout
NO