askarulytarlan

конь

Oct 8th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <math.h>
  5.  
  6.  
  7. using namespace std;
  8.  
  9. int a, b, c, d;
  10.  
  11. int main(int argc, const char * argv[]) {
  12.  
  13. cin >> a >> b >> c >> d;
  14. if (a / c == b / d){
  15. cout << "YES";
  16. return 0 ;
  17. }
  18. if (a / c == d / b){
  19. cout << "YES";
  20. return 0 ;
  21. }
  22. if (c / a == b / d){
  23. cout << "YES";
  24. return 0 ;
  25. }
  26. if (c / a == d / b){
  27. cout << "YES";
  28. return 0 ;
  29. }
  30. else {
  31. cout << "NO";
  32. return 0;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment