fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. int A, B, C, D;
  8. cin >> A >> B >> C >> D;
  9.  
  10. if (pow(A, B) > pow(C, D)) {
  11. cout << "YES" << endl;
  12. } else {
  13. cout << "NO" << endl;
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5292KB
stdin
2   3   1  2
stdout
YES