| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135613 | 李朋秦 | 31忽略大小写的字符串比较 | C++ | Wrong Answer | 1 MS | 276 KB | 509 | 2025-11-07 18:59:37 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; getline(cin,a); getline(cin,b); int l1=a.size(); int l2=b.size(); int x=0,y=0; for(int i=0;i<l1;i++){ if(((a[i]>='a'&&a[i]<='s')||(a[i]>='A'&&a[i]<='S'))&&a[i]==b[i]){ x+=0; }else x+=int(a[i]); } for(int i=0;i<l2;i++){ if(((b[i]>='a'&&b[i]<='s')||(b[i]>='A'&&b[i]<='S'))&&a[i]==b[i]){ x+=0; }else y+=int(b[i]); } if(x>y)cout<<">"; else if(x<y)cout<<"<"; else if(x==y)cout<<"="; return 0; }
------Input------
hello world Hello world
------Answer-----
=
------Your output-----
>