西工大NOJ100题+解答(5)
发布时间:2021-06-08
发布时间:2021-06-08
#include<stdio.h> int main() {
int n;
scanf("%d",&n);
if ((1000<n<10000)&&(n/1000==n%10)&&(n/100%10==n/10%10)) printf("yes\n"); else if((100<n<=1000)&&(n/100==n%10)) printf("yes\n"); else if((10<n<=100)&&(n/10==n%10)) printf("yes\n"); else if(0<n<=10) printf("yes\n"); else printf("no\n"); return 0; }