您的位置:首页 > 其它

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: