版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tobe_numberone/article/details/89057683
题目链接:https://nanti.jisuanke.com/t/T1125
算法特工队QQ群:979618872 (伸手党绕边,欢迎有良好基础的人加入)
#include<stdio.h>
#include<string.h>
int main(){
int i,j,lethen;
char s[101];
gets(s);
lethen=strlen(s);
{
for(i=0,j=lethen-1;i<=j;i++,j--)
{
if(s[i]!=s[j]) {printf("no\n");break;}
}
if(i>j) printf("yes\n");
}
}