HDU 2029 - Palindromes _easy version

来源:互联网 发布:淘宝网男装特价冬季 编辑:程序博客网 时间:2024/05/02 10:00

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2029

#include <stdio.h>#include <string.h>int main(void){    int n;    char s[1024];    char t[1024];    scanf("%d%*c", &n);        while (n--)    {        gets(s);        strcpy(t, s);        strrev(s);        puts(strcmp(t, s) ? "no" : "yes");    }    return 0;}


原创粉丝点击