| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41349 | 老方 | 忽略大小写的字符串比较 | C++ | Compile Error | 0 MS | 0 KB | 375 | 2024-02-20 18:07:33 |
#include<bits/stdc++.h> using namespace std; int main(){ char n1[105],n2[105]; cin>>n1>>n2; for(int i=0;i<strlen(n1);i++)if(n1[i]>='a'&&n1[i]<='z')a[i]-=32; for(int i=0;i<strlen(n2);i++)if(n2[i]>='a'&&n2[i]<='z')a[i]-=32; if(strcmp(n1,n2)==n1&&strcmp(n1,n2)!=n2)cout<<">"; else if(strcmp(n1,n2)!=n1&&strcmp(n1,n2)==n2)cout<<"<"; else cout<<"="; return 0; }