1192:回文字符串
#include<stdio.h>
#include<string.h>
int main()
{
char s[1002];
while(scanf("%s",s)!=EOF)
{
int i,j;
for(i=0,j=strlen(s)-1;i<j;++i,--j)
{
if(s[i]!=s[j])
break;
}
if(i<j)
printf("No!\n");
else
printf("Yes!\n");
}
return 0;
}

浙公网安备 33010602011771号