Untitled
unknown
c_cpp
a year ago
227 B
1
Indexable
Never
#include <iostream> #include <string> 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"; } }