| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135763 | 李朋秦 | 31忽略大小写的字符串比较 | C++ | Presentation Error | 1 MS | 276 KB | 450 | 2025-11-08 13:53:21 |
#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]<='Z')char(int(a[i])+32); x+=int(a[i]); } cout<<endl; for(int i=0;i<l2;i++){ if(b[i]>='A'&&b[i]<='Z')char(int(b[i])+32); y+=int(b[i]); } if(x<y)cout<<"<"; else if(x==y)cout<<"="; else if(x>y)cout<<">"; return 0; }