| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 40769 | chenyifei | 字符串判等 | C++ | Wrong Answer | 1 MS | 256 KB | 405 | 2024-02-16 10:49:47 |
#include<iostream> #include<cstring> using namespace std; int main() { char a[105],b[105]; gets(a); gets(b); for(int i=0;i<strlen(a);i++){ if(a[i]>='a'&&a[i]<='z'){ a[i]=a[i]+('A'-'a'); } } for(int i=0;i<strlen(b);i++){ if(b[i]>='a'&&b[i]<='z'){ b[i]=b[i]+('A'-'a'); } } int c=strcmp(a,b); if(c==0){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }