OddString

AtCoder
IDabc072_b
Time2000ms
Memory256MB
Difficulty
You are given a string $s$ consisting of lowercase English letters. Extract all the characters in the odd-indexed positions and print the string obtained by concatenating them. Here, the leftmost character is assigned the index $1$. ## Constraints * Each character in $s$ is a lowercase English letter. * $1≤|s|≤10^5$ ## Input The input is given from Standard Input in the following format: $s$ [samples]
Samples
Input #1
atcoder
Output #1
acdr

Extract the first character `a`, the third character `c`, the fifth character `d` and the seventh character `r` to obtain `acdr`.
Input #2
aaaa
Output #2
aa
Input #3
z
Output #3
z
Input #4
fukuokayamaguchi
Output #4
fkoaaauh
API Response (JSON)
{
  "problem": {
    "name": "OddString",
    "description": {
      "content": "You are given a string $s$ consisting of lowercase English letters. Extract all the characters in the odd-indexed positions and print the string obtained by concatenating them. Here, the leftmost char",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc072_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $s$ consisting of lowercase English letters. Extract all the characters in the odd-indexed positions and print the string obtained by concatenating them. Here, the leftmost char...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments