#include<iostream> #include<cstring> using namespace std; int main() { int t; cin>>t; string a,b; while(t--) { cin>>a>>b; if(a+b>b+a) { cout<<">"<<endl; } else if(a+b<b+a) { cout<<"<"<<endl; } else { cout<<"="<<endl; } } return 0; }
#include<iostream> #include<cstring> using namespace std; int main() { int t; cin>>t; string a,b; while(t--) { cin>>a>>b; if(a+b>b+a) { cout<<">"<<endl; } else if(a+b<b+a) { cout<<"<"<<endl; } else { cout<<"="<<endl; } } return 0; }