AtCoder Beginner Contest 145
翻译中…
Problem Statement
翻译中…
Given are a positive integer $N$ and a string $S$ of length $N$ consisting of lowercase English letters.
翻译中…
Determine whether the string is a concatenation of two copies of some string. That is, determine whether there is a string $T$ such that $S = T + T$.
翻译中…
Constraints
翻译中…
$1 \leq N \leq 100$$S$consists of lowercase English letters.$|S| = N$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N
S
翻译中…
Output
翻译中…
If $S$ is a concatenation of two copies of some string, print Yes; otherwise, print No.
翻译中…
样例
Input #1
6
abcabc
Output #1
Yes
Let $T =$ `abc`, and $S = T + T$.
Input #2
6
abcadc
Output #2
No
Input #3
1
z
Output #3
No
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。