#6888. [2018 KAIST RUN Fall] Repetitive Palindrome
[2018 KAIST RUN Fall] Repetitive Palindrome
[2018 KAIST RUN Fall] Repetitive Palindrome
题目描述
You are given a string $s$ consisting of lowercase alphabets, and an integer $k$.Make a new string by concatenating copies of . Determine whether is a palindrome, e.g. is the same backward as forward.
输入格式
The first line contains a string $s$ consisting of lowercase alphabets. ($1 \le |s| \le 250000$)The second line contains an integer . ()
输出格式
If $t$ is a palindrome, print $\texttt{YES}$. If not, print $\texttt{NO}$.abc
3
NO
abba
1
YES