怎么没人发题解?
2025-04-23 18:40:32
发布于:四川
5阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
string x = "", y = "";
for (int i = 0; i < a.size(); i++)
if(a[i] != ' ') x += a[i];
for (int i = 0; i < b.size(); i++)
if(b[i] != ' ') y += a[i];
if(x == y) cout << "YES";
else cout << "NO";
return 0;
}
这里空空如也
有帮助,赞一个