Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135759 鲁博睿 31忽略大小写的字符串比较 C++ Wrong Answer 1 MS 272 KB 527 2025-11-08 13:28:12

Tests(1/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a,b; getline(cin,a); getline(cin,b); int a1,b1; int c; for(c=0;c<a1;c++){ if(a[c]>='A'&&a[c]<='Z'){ a[c]=a[c]+32; } } for(c=0;c<b1;c++){ if(b[c]>='A'&&b[c]<='Z'){ b[c]=b[c]+32; } } if(a==b){ cout<<'='; } else if(a>b){ cout<<'>'; } else{ cout<<'<'; } return 0; }


Run Info:

------Input------
hello world Hello world
------Answer-----
=
------Your output-----
>