fork download
  1. // https://c...content-available-to-author-only...s.com/group/MWSDmqGsZm/contest/219158/problem/Z
  2.  
  3. #include <iostream>
  4. #include <cmath>
  5. using namespace std;
  6. int main()
  7. {
  8. double n1 , n2 , n3 , n4 ;
  9. cin>> n1 >> n2 >> n3 >> n4 ;
  10. double res1 = n2 * log(n1) ;
  11. double res2 = n4 * log(n3) ;
  12. res1 > res2 ? cout<<"YES" : cout<<"NO" ;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
NO