- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- string s1,s2;
- cin>>s1>>s2;
- if(s1[0]>s2[0])
- cout<<s1<<" > "<<s2;
- else if(s1[0]<s2[0])
- cout<<s1<<" < "<<s2;
- else
- {
- int i1=stoi(s1.substr(1));
- int i2=stoi(s2.substr(1));
- if(i1<i2)
- cout<<s1<<" < "<<s2;
- else if(i1>i2)
- cout<<s1<<" > "<<s2;
- else
- cout<<s1<<" = "<<s2;
- }
- return 0;
- }
複製代碼 |