Untitled
unknown
plain_text
2 years ago
208 B
6
Indexable
#include <iostream> using namespace std; int main() { string a; string b; cin >> a; b = a; reverse(a.begin(), a.end()); if (a == b) { cout << "YES"; } else { cout << "NO"; } }
Editor is loading...