Untitled

 avatar
unknown
c_cpp
2 years ago
227 B
5
Indexable
#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";
	}
}
Editor is loading...