Untitled
Anonymous
c_cpp
10/27/2023 5:01 PM
360 B
27
Indexable
#include <iostream>
#include <string>
int main() {
std::string a, copy_a;
std::cin >> a;
copy_a = a;
std::reverse(a.begin(), a.end());
if (a == copy_a) {
std::cout << "YES";
}
else {
std::cout << "NO";
}
}Editor is loading...