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