fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <math.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. long long a,b,c,d;
  9.  
  10. cin>>a>>b>>c>>d;
  11. if (pow(a,b)>pow(c,d))
  12. {
  13. cout<<"YES"<<endl;
  14. }
  15. else if(pow(a,b)<=pow(c,d))
  16. {
  17. cout<<"NO"<<endl;
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 4504KB
stdin
Standard input is empty
stdout
NO