36 lines
488 B
C++
36 lines
488 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
void test_case(int tc){
|
|
string s;
|
|
cin >> s;
|
|
|
|
for(size_t i = 0; i < (s.size() + 1) / 2; ++i){
|
|
if(s[i] != s[i + (s.size() + 1) / 2]){
|
|
cout << "NO\n";
|
|
return;
|
|
}
|
|
}
|
|
|
|
cout << "YES\n";
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
int main(){
|
|
ios::sync_with_stdio(0);
|
|
cin.tie(0);
|
|
|
|
int t;
|
|
cin >> t;
|
|
|
|
for(int tc = 1; tc <= t; ++tc){
|
|
test_case(tc);
|
|
}
|
|
|
|
cout << flush;
|
|
|
|
return 0;
|
|
} |