A. Square String?
tags: implementation; strings; *800
solution:简单模拟
code:
#include<bits/stdc++.h>
using namespace std;
void solve(){
string s; cin>>s;
int n=s.length();
if(n&1){
cout<<"NO\n";
return;
}
bool flag=true;
for(int i=0,j=n/2;i<n/2;i++,j++){
if(s[i]!=s[j]) flag=false;
}
if(flag) cout<<"YES\n";
else cout<<"NO\n";
return;
}
int main(){
ios::sync_wi