Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #include<string.h>
- using namespace std;
- int main()
- {
- string st,str,rs;
- cin>>st>>str;
- reverse(str.begin(),str.end());
- rs=str;
- if(strcmp(st,rs))
- {
- cout<<"YES"<<endl;
- }
- if(!strcmp(st,rs))
- {
- cout<<"NO"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement