newton/solutions/1619A.py

11 lines
196 B
Python
Raw Normal View History

2025-01-11 11:41:29 +00:00
t = int(input())
for _ in range(t):
s = input()
if len(s) % 2 != 0:
print("NO")
elif s[0:len(s)//2] == s[len(s)//2:len(s)]:
print("YES")
else:
print("NO")