| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159260 | 张蔚林 | 31忽略大小写的字符串比较 | C++ | Accepted | 1 MS | 272 KB | 399 | 2026-08-27 13:28:12 |
#include<bits/stdc++.h> using namespace std; int main() { string s,t; getline(cin,s); getline(cin,t); int n=s.length(),l=t.length(); for(int i=0;i<n;i++){ if(s[i]>='A'&&s[i]<='Z'){ s[i]+=32; } } for(int j=0;j<l;j++){ if(t[j]>='A'&&t[j]<='Z'){ t[j]+=32; } } if(s>t){ cout<<'>'; } else if(s<t){ cout<<'<'; } else{ cout<<'='; } return 0; }