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. if (pow(a, b) > pow(c, d)) {
  10. cout << "YES" << endl;
  11. } else {
  12. cout << "NO" << endl;
  13. }
  14.  
  15. return 0;
  16. }
  17.  
  18.  
Success #stdin #stdout 0.01s 5264KB
stdin
  3  2   5  4
stdout
NO