Echo

AtCoder
IDabc145_b
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "Echo",
    "description": {
      "content": "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, determin",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc145_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given are a positive integer $N$ and a string $S$ of length $N$ consisting of lowercase English letters.\nDetermine whether the string is a concatenation of two copies of some string. That is, determin...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments