提交时间:2024-11-01 16:38:27
运行 ID: 54992
#include<iostream> #include<cstring> using namespace std; char a[81],b[81]; int main() { gets(a); gets(b); for(int i=0;i<strlen(a);i++){ if('a'<=a[i]&&a[i]<='z'){ a[i]+=('A'-'a'); } } for(int i=0;i<strlen(b);i++){ if('a'<=b[i]&&b[i]<='z'){ b[i]+=('A'-'a'); } } int c=strcmp(a,b); if(c==0){ cout<<"="; } else if(c==1){ cout<<">"; } else{ cout<<"<"; } return 0; }