| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82426 | 张黄源 | 31忽略大小写的字符串比较 | C++ | Wrong Answer | 0 MS | 280 KB | 439 | 2024-07-13 11:17:29 |
#include<bits/stdc++.h> using namespace std; int main() { string a,b; getline(cin,a); getline(cin,b); int len=a.length(); int len1=b.length(); for(int i=0; i<len; i++) { if(a[i]>='A'&&a[i]<='Z') { a[i]=a[i]+32; } } for(int i=0; i<len1; i++) { if(b[i]>='A'&&b[i]<='Z') { b[i]=b[i]+32; } if(a>b) { cout<<">"; } else if(a<b) { cout<<"<"; } else { cout<<"="; } } return 0; }
------Input------
abc E abc E
------Answer-----
=
------Your output-----
>>>>==