SHARE
TWEET

002

a guest Dec 8th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main()
  7. {
  8.     string mas,poli;
  9.     cin >> mas;
  10.     for (int i = 0; i < mas.size()/2; i++)
  11.     {
  12.         if (mas[i] != mas[mas.size() - i-1])
  13.         {
  14.             cout << "NO";
  15.             return 0;
  16.         }
  17.     }
  18.     cout << "YES";
  19.  
  20.     return 0;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top