| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138546 | Kevin | 31忽略大小写的字符串比较 | C++ | Wrong Answer | 0 MS | 264 KB | 452 | 2025-11-27 11:09:01 |
#include<bits/stdc++.h> using namespace std; int main(){ char s1[100],s2[100]; gets(s1); gets(s2); int len1=strlen(s1); int len2=strlen(s2); for(int i=0;i<len1;i++) { if(s1[i]>='A'&&s1[i]<='Z'){ s1[i]=s1[i]+32; } } for(int i=0;i<len2;i++) { if(s2[i]>='A'&&s2[i]<='Z'){ s2[i]=s2[i]+32; } } if(strcmp(s1,s2)==0){ cout<<"="; } else if(strcmp(s1,s2)==1){ cout<<">"; } else cout<<"<"; return 0; }
------Input------
good morning geed morning
------Answer-----
>
------Your output-----