mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-11 00:30:27 +08:00
28 lines
355 B
C++
28 lines
355 B
C++
#include <iostream>
|
|
#include <cstring>
|
|
#include <cstdio>
|
|
#include <iomanip>
|
|
using namespace std;
|
|
int main(){
|
|
char a[10000];
|
|
cin >>a;
|
|
int b;
|
|
int flag=1;
|
|
for(int i=strlen(a)-1;i>=0;i--){
|
|
b=strlen(a)-i-1;
|
|
if(a[i]!=a[b]){
|
|
flag=0;
|
|
break;
|
|
}
|
|
}
|
|
if(flag==1){
|
|
cout <<"Yes";
|
|
}
|
|
else{
|
|
cout <<"No";
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|