2 solutions
Information
- ID
- 50
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 277
- Accepted
- 68
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int t=n;
int y=0;
while(n!=0)
{
int ge=n%10;
y*=10;
y+=ge;
n/=10;
}
if(y==t)
{
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
}
、