fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5.  
  6. int main() {
  7. long long a, b, c, d;
  8. cin >> a >> b >> c >> d;
  9. long long first, second;
  10. first = pow(a,b), second = pow(c,d);
  11. if(first>second) cout << "YES";
  12. else cout << "NO";
  13. }
Success #stdin #stdout 0s 5332KB
stdin
Standard input is empty
stdout
YES