T3题解
2025-07-29 12:34:26
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
string x,y;
int main(){
getline(cin,x);
getline(cin,y);
for(int i=0;i<x.size();i++)
if(x[i]>='A'&&x[i]<='Z')
x[i]+=32;
for(int i=0;i<y.size();i++)
if(y[i]>='A'&&y[i]<='Z')
y[i]+=32;
if(x==y) cout<<"YES";
else cout<<"NO";
return 0;
}
这里空空如也
有帮助,赞一个