codeup5901 回文串
来源:互联网 发布:传到前台数据乱码 编辑:程序博客网 时间:2024/05/22 15:22
#include <iostream>#include <stdio.h>#include <string.h>using namespace std;int main(){ int n; bool b=0; char a[256]; scanf("%s",a); n=strlen(a); for(int i=0;i<n/2;i++) { if(a[i]!=a[n-i-1]) { printf("NO"); b=1; break; } } if(b==0) { printf("YES"); } return 0;}
0 0
- codeup5901 回文串
- 回文数&&回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- 回文串
- **回文串
- 回文串
- 回文串
- 回文串
- 回文串
- androidStudio常见错误
- AutoLayout的起源、概念和基本知识
- DataGuard 单机到单机
- 交叉编译boost库for海思
- 项目1:logit,GBM,knn,xgboost准确率测试
- codeup5901 回文串
- java 模仿网络请求 实现手机发送短信
- <Torch>~2.建模过程简介(溪欲焰)
- Android中TextView深入使用----单独TextView实现图文混排
- Java编写日历程序,显示当前月份及日期
- 【Java-IO】RandomAccessFile
- JVM 相关知识整理
- Android关于混淆打包的记录
- Zen Coding 使用及常用简写