……
by The_Power_of_Pigeon @ 2018-10-15 18:55:50
@[EthanWu](/space/show?uid=28193)
劲量在你的代码上改了
```
#include<bits/stdc++.h>
using namespace std;
string s,a;
char b[100+10];
int main()
{
cin>>s>>a;
int lena=a.length();
for(int i=1;i<=lena;i++)
{
b[i]=a[lena-i];
if(b[i]!=s[i-1])
{
cout<<"NO"<<endl;
return 0;
}
}
cout<<"YES"<<endl;
return 0;
}
```
by 肖珂 @ 2018-10-15 19:07:08
可以过,但方法不是最好的。
by 肖珂 @ 2018-10-15 19:07:50
@[蒟蒻_果冻](/space/show?uid=104122) 谢谢dalao,您的代码就可以过了%%%
by EthanWu @ 2018-10-15 19:16:44