fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. string a , b;
  6. cin >> a >> b;
  7. while (a[0] == '0') a.erase (0 , 1);
  8. while (b[0] == '0') b.erase (0 , 1);
  9. if (a.size () < b.size ()) cout << "<";
  10. else if (a.size () > b.size ()) cout << ">";
  11. else
  12. {
  13. if (a > b) cout << ">";
  14. else if (a < b) cout << "<";
  15. else cout << "=";
  16. }
  17. }
Success #stdin #stdout 0s 5424KB
stdin
Standard input is empty
stdout
=