提交时间:2024-02-21 11:30:28

运行 ID: 41511

#include<bits/stdc++.h> using namespace std; int main() { char a[110]={},b[110]={}; gets(a); gets(b); for(int i=0;i<strlen(a);i++){ if(a[i]==' ') a[i]+=32; if(a[i]>='A'&&a[i]<='Z') a[i]+=32; } for(int i=0;i<strlen(b);i++){ if(b[i]=='32') b[i]+=1; if(b[i]>='A'&&b[i]<='Z') b[i]+=32; } if(strcmp(a,b)==0) cout<<"YES"; else cout<<"NO"; return 0; }