| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135615 | 李朋秦 | 31忽略大小写的字符串比较 | C++ | Wrong Answer | 1 MS | 276 KB | 485 | 2025-11-07 19:04:42 |
#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((int(a[i])+32==int(b[i]))||(int(a[i])-32==int(b[i])))x+=0; else x+=int(a[i]); } for(int i=0;i<l2;i++){ if((int(a[i])+32==int(b[i]))||(int(a[i])-32==int(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 Moto hello Moto
------Answer-----
>
------Your output-----