Advertisement
LEGEND2004

POW

Aug 8th, 2023
1,212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define int long long
  5.  
  6. signed main()
  7. {
  8.     int a , b , c;
  9.     cin >> a >> b >> c;
  10.     if(c % 2 == 0){
  11.         a = abs(a);
  12.         b = abs(b);
  13.         // a >= 0; b >= 0
  14.     }
  15.  
  16.     if((a >= 0) && (b >= 0)){
  17.         if(a == b){
  18.             cout << "=" << endl;
  19.             return 0;
  20.         }
  21.         cout << ((a > b) ? ">" : "<") << endl;
  22.         return 0;
  23.     }
  24.     if((a <= 0) && (b <= 0)){
  25.         if(a == b){
  26.             cout << "=" << endl;
  27.             return 0;
  28.         }
  29.         cout << ((a > b) ? ">" : "<") << endl;
  30.         return 0;
  31.     }
  32.     cout << ((a > b) ? ">" : "<") << endl;
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement