Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
44211 | chenyanda | 忽略大小写的字符串比较 | C++ | Compile Error | 0 MS | 0 KB | 241 | 2024-03-29 15:30:13 |
#include<bits/stdc++.h> using namespace std; int main() { char a[85],b[85]; gets(a); gets(b); strlwr(a); strlwr(b); if(strcmp(a,b)==0){ cout<<"="; } else if(strcmp(a,b)>0){ cout<<">"; } else{ cout<<"<"; } }