Untitled

Anonymous
plain_text
10/28/2023 6:58 PM
280 B
21
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...