文章
1
粉丝
67
获赞
0
访问
373
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
int main(){
char s1[1005];
while(scanf("%s",s1)!=EOF){
char *p=s1;
char *q=s1+strlen(s1)-1;
int flag=0;
while(*p!='\0'){
if(*p != *q){
flag=1;
break;
}else{
p++;
q--;
}
}
if(flag==0)
cout<<"Yes!"<<endl;
else
&n...
登录后发布评论
暂无评论,来抢沙发