Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
48599 | yuzhengxun | 忽略大小写的字符串比较 | C++ | Compile Error | 0 MS | 0 KB | 260 | 2024-06-09 17:24:25 |
#include<bits/stdc++.h> using namespace std; //char a[85],b[85]; string a,b; int main() { getline(cin,a); getline(cin,b); strlwr(a); strlwr(b); if(strcmp(a,b)==0) cout<<"="; else if(strcmp(a,b)<0) cout<<"<" ; else cout<<">"; return 0; }