51nod 1347 【水】
2016-08-30 00:29
260 查看
#include<cstdio> #include <map> #include<iostream> #include<string.h> #include<algorithm> using namespace std; const int N=1e6+10; typedef long long LL; char s ; char s1 ; char s2 ; int main() { int i; scanf("%s",s); int len=strlen(s); for(i=0;i<len/2;i++) s1[i]=s[i]; s1[i]='\0'; int num=0; for(i=len/2;i<len;i++) s2[num++]=s[i]; s2[num]='\0'; int ans=strcmp(s1,s2); if(ans) puts("NO"); else puts("YES"); return 0; }
相关文章推荐
- JSPatch 中 defineClass 中覆盖方法的使用
- typedef 的用法
- spring 简单操作数据库
- Real-Time Rendering-附录B 三角函数
- UVa 1330 City Game(DP)
- GH0ST编译步骤
- nginx+keepalive主从双机热备+自动切换解决方案
- objdump的使用
- Codeforces711C 【DP】
- 安装 Linuxbrew
- 每日问题之子类字段属性使用父类的非静态字段属性错误
- 如何修改nexus的端口号
- 大数据平台--没有数据的平台
- 通过进程PID找到其占用的端口
- 监控Linux进程状态
- 红帽HA最简易无说明
- 查看进程运行在哪个CORE上以及进程下线程数量
- 【杂谈\Java\数据库】SpringMVC 连接MySQL超时问题解决方案
- Scala进阶27-List中的上界、下界、逆变、协变
- codeforces Round#369 div2-D tDirected Roads