Spoiler

AtCoder
IDabc344_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ consisting of lowercase English letters and `|`. $S$ is guaranteed to contain exactly two `|`s. Remove the characters between the two `|`s, including the `|`s themselves, and print the resulting string. ## Constraints * $S$ is a string of length between $2$ and $100$, inclusive, consisting of lowercase English letters and `|`. * $S$ contains exactly two `|`s. ## Input The input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
atcoder|beginner|contest
Output #1
atcodercontest

Remove all the characters between the two `|`s and print the result.
Input #2
|spoiler|
Output #2
It is possible that all characters are removed.
Input #3
||xyz
Output #3
xyz
API Response (JSON)
{
  "problem": {
    "name": "Spoiler",
    "description": {
      "content": "You are given a string $S$ consisting of lowercase English letters and `|`. $S$ is guaranteed to contain exactly two `|`s. Remove the characters between the two `|`s, including the `|`s themselves, an",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc344_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ consisting of lowercase English letters and `|`. $S$ is guaranteed to contain exactly two `|`s.\nRemove the characters between the two `|`s, including the `|`s themselves, an...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments