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