eolymp
bolt
Try our new interface for solving problems
Məsələlər

Dördrəqəmli polindrom

dərc olunub 11.02.24 09:59:27

include <bits/stdc++.h>

using namespace std;

int main() {

iosbase::syncwith_stdio(false); cin.tie(nullptr); long long n; cin>>n; int a=n/1000; int b=n/100%10; int c=n%100/10; int d=n%10; if(a==d && b==c){ cout<<"YES"; } else{ cout<<"NO"; } }