题库 信息学奥赛题库 题目列表 #include <stdio.h>#include <string.h>c...
填空题

#include <stdio.h>

#include <string.h>

const int SIZE = 100;

int main() {

int n, i, isPlalindrome;

char str[SIZE];

scanf("%s", str);

n = strlen(str);

isPlalindrome = 1;

for (i = 0; i < n/2; i++) {

if (str[i] != str[n-i-1]) isPlalindrome = 0;

}

if (isPlalindrome)

printf("Yes\n");

else

printf("No\n");

return 0;

}

输入:abceecba

输出:_________

题目信息
2013年 初赛
-
正确率
0
评论
53
点击