Untitled

 avatar
user_5668965
c_cpp
11 days ago
621 B
1
Indexable
Never
#include<bits/stdc++.h>
using namespace std;

#define ll long long int
#define bg begin()
#define rbg rbegin()
#define ed end()
#define sz size()

int main()
{
    ios_base::sync_with_stdio(false);
    ll t,n,m,x,i,j,k,answer=0;
    string s,y; 
    cin>>s>>y;
    reverse(s.bg,s.ed); 
    reverse(y.bg,y.ed);
    while(s.back()=='0' && s.sz!=1) s.pop_back();
    while(y.back()=='0' && y.sz!=1) y.pop_back();
    reverse(s.bg,s.ed); reverse(y.bg,y.ed);
    if(s.sz>y.sz) cout<<'>';
    else if(y.sz>s.sz) cout<<'<';
    else if(s>y) cout<<'>';
    else if(s<y) cout<<'<';
    else cout<<"=";

}
Leave a Comment