POJ 2029 Palindromes _easy version
2024-08-28 21:35:22
#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
int n;
char str[];
scanf("%d", &n);
while(n--)
{
scanf("%s", str);
int len = strlen(str);
int flag = ;
for(int i = , j = len-; i <= j; i++, j--)
{
if(str[i] != str[j])
{
flag = ;
break;
}
}
if(!flag) printf("no\n");
else printf("yes\n");
}
return ;
}
最新文章
- NYOJ 737 石子合并(一)
- C++学习之重载、覆盖与隐藏
- [Android Pro] proguard
- 反转链表 --剑指offer
- 一步步学习NHibernate(7)——HQL查询(1)
- importExcel运用注解实现EXCEL导入poi类
- cortex m0 lpc1114的NVIC中断如何使用
- Creating Lists and Cards 创建列表和卡片
- 大数据除法(Large data division)
- Linux系统基础优化
- RedHat系列软件管理(第二版) --源码包安装
- 常见Web攻击
- Django的认证系统和Django admin的简单使用
- Python发送QQ邮件
- JAVA面试精选【Java web部分一】
- 记录:CSS选择器学习
- dhtmlx uploader使用
- [leetcode]Populating Next Right Pointers in Each Node @ Python
- JAVA中重写equals()方法为什么要重写hashcode()方法?
- MSSqlServer 数据库降级及数据转移
热门文章
- 杭电1023Train Problem II
- Oracle数据库安全(二)资源限制于口令管理
- xaml可扩展应用程序标记语言
- 使用KNN算法手写体识别
- c# 布局(stackpanel)
- MFC 任务管理器设计
- Springer Latex
- 图片加载之Picasso使用
- 阿里云centOS7.4 nginx: [emerg] ";server"; directive is not allowed here in /etc/nginx/vhost/xxxxxx.conf:2
- sql 生成随机数 以及不重复随机数