http://acm.hdu.edu.cn/showproblem.php?pid=2029

 #include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<iostream>
using namespace std; int main()
{
//freopen("in.txt","r",stdin);
int n;
char s[]; while(cin>>n)
{
while(n--)
{
int flag=;
scanf("%s",s);
int len=strlen(s);
for(int i=,j=len-;i<=j;i++,j--)
{
if(s[i]!=s[j])
{
flag=;
break;
}
}
if(flag==)
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
}
}
return ;
}

最新文章

  1. 分布式搜索引擎Elasticsearch的简单使用
  2. OpenCV绘图
  3. Javascript 知识点整理
  4. javaScript 查询字符串参数 获取
  5. 日志分析系统——Hangout源码学习
  6. BZOJ 1101: [POI2007]Zap
  7. 为easyui datagrid 添加上下方向键移动
  8. [git]解决:git config --global push.default matching
  9. ASP.NET中的常用快捷键
  10. 【 D3.js 高级系列 — 7.0 】 标注地点
  11. CSS3中的弹性流体盒模型技术详解
  12. android 基本控件使用
  13. LeetCode 26. Remove Duplicates from Sorted Array (从有序序列里移除重复项)
  14. 最重要的 Java EE 最佳实践
  15. light oj 1152 Hiding Gold
  16. vscode设置出错, 无法自动补全
  17. 【莫比乌斯反演】BZOJ2005 [NOI2010]能量采集
  18. 中文编码错误,Error output could not be translated from the native locale to UTF-8.
  19. ceph版本号
  20. 《Java大学教程》—第24章 Java的背景

热门文章

  1. xfce 设在分辨率1920 1080
  2. Ubuntu16.04安装rabbitmq(实战)
  3. python爬虫26 | 把数据爬取下来之后就存储到你的MySQL数据库。
  4. HTML5中Canvas概述
  5. LVS 源代码分析
  6. Effictive Java学习笔记1:创建和销毁对象
  7. SpringMVC断言--Assert
  8. Java中基于HTTP协议网络编程
  9. vijos- P1383盗窃-黑珍珠 (python + 代码优化)
  10. Solidworks如何整体缩放零件