Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
268 B
1
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";
    }
}