Advertisement
add1ctus

Translation

Sep 30th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     string str1,str2;
  10.     cin>>str1>>str2;
  11.     reverse(str1.begin(),str1.end());
  12.     if(str1==str2)
  13.         cout<<"YES";
  14.     else
  15.         cout<<"NO";
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement