fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,a,b;
  6. cin >> n;
  7. a=(n/100);
  8. b=(n%10);
  9. cout << (a==b ? (char)(61) : (a>b ? (char)(48+a) : (char)(48+b)));
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
122
stdout
2